@oneuptime/common 14.0.96 → 14.0.98

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 (271) 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/CodeRepository.d.mts +3 -0
  8. package/Models/DatabaseModels/CodeRepository.d.ts +3 -0
  9. package/Models/DatabaseModels/CodeRepository.js +104 -0
  10. package/Models/DatabaseModels/Incident.d.mts +2 -0
  11. package/Models/DatabaseModels/Incident.d.ts +2 -0
  12. package/Models/DatabaseModels/Incident.js +63 -0
  13. package/Models/DatabaseModels/Index.js +12 -0
  14. package/Models/DatabaseModels/NetworkAddressName.d.mts +14 -0
  15. package/Models/DatabaseModels/NetworkAddressName.d.ts +14 -0
  16. package/Models/DatabaseModels/NetworkAddressName.js +300 -0
  17. package/Models/DatabaseModels/NetworkAddressName.mjs +2 -0
  18. package/Models/DatabaseModels/NetworkDevice.d.mts +1 -0
  19. package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
  20. package/Models/DatabaseModels/NetworkDevice.js +38 -0
  21. package/Models/DatabaseModels/SecurityCase.d.mts +8 -0
  22. package/Models/DatabaseModels/SecurityCase.d.ts +8 -0
  23. package/Models/DatabaseModels/SecurityCase.js +145 -0
  24. package/Models/DatabaseModels/SecurityCaseEvidence.d.mts +32 -0
  25. package/Models/DatabaseModels/SecurityCaseEvidence.d.ts +32 -0
  26. package/Models/DatabaseModels/SecurityCaseEvidence.js +548 -0
  27. package/Models/DatabaseModels/SecurityCaseEvidence.mjs +2 -0
  28. package/Models/DatabaseModels/SecurityCaseFeed.d.mts +4 -1
  29. package/Models/DatabaseModels/SecurityCaseFeed.d.ts +4 -1
  30. package/Models/DatabaseModels/SecurityCaseFeed.js +6 -0
  31. package/Models/DatabaseModels/SecurityCasePriority.d.mts +2 -0
  32. package/Models/DatabaseModels/SecurityCasePriority.d.ts +2 -0
  33. package/Models/DatabaseModels/SecurityCasePriority.js +44 -0
  34. package/Models/DatabaseModels/SecurityCaseTask.d.mts +22 -0
  35. package/Models/DatabaseModels/SecurityCaseTask.d.ts +22 -0
  36. package/Models/DatabaseModels/SecurityCaseTask.js +467 -0
  37. package/Models/DatabaseModels/SecurityCaseTask.mjs +2 -0
  38. package/Models/DatabaseModels/SecurityHunt.d.mts +34 -0
  39. package/Models/DatabaseModels/SecurityHunt.d.ts +34 -0
  40. package/Models/DatabaseModels/SecurityHunt.js +608 -0
  41. package/Models/DatabaseModels/SecurityHunt.mjs +2 -0
  42. package/Models/DatabaseModels/SecurityWatchlist.d.mts +22 -0
  43. package/Models/DatabaseModels/SecurityWatchlist.d.ts +22 -0
  44. package/Models/DatabaseModels/SecurityWatchlist.js +411 -0
  45. package/Models/DatabaseModels/SecurityWatchlist.mjs +2 -0
  46. package/Models/DatabaseModels/SecurityWatchlistItem.d.mts +17 -0
  47. package/Models/DatabaseModels/SecurityWatchlistItem.d.ts +17 -0
  48. package/Models/DatabaseModels/SecurityWatchlistItem.js +321 -0
  49. package/Models/DatabaseModels/SecurityWatchlistItem.mjs +2 -0
  50. package/Types/AI/AIChatTypes.d.mts +1 -0
  51. package/Types/AI/AIChatTypes.d.ts +1 -0
  52. package/Types/AI/AIRunEventType.d.mts +1 -0
  53. package/Types/AI/AIRunEventType.d.ts +1 -0
  54. package/Types/AI/AIRunEventType.js +8 -0
  55. package/Types/AI/AiAffectedResources.d.mts +2 -1
  56. package/Types/AI/AiAffectedResources.d.ts +2 -1
  57. package/Types/AI/AiAffectedResources.js +12 -1
  58. package/Types/AI/AiTokenCount.d.mts +22 -1
  59. package/Types/AI/AiTokenCount.d.ts +22 -1
  60. package/Types/AI/AiTokenCount.js +126 -57
  61. package/Types/AI/AiTokenCount.mjs +2 -0
  62. package/Types/AI/CodeFixTaskContext.d.mts +1 -0
  63. package/Types/AI/CodeFixTaskContext.d.ts +1 -0
  64. package/Types/AffectedResources/AffectedResourceSearch.d.mts +53 -0
  65. package/Types/AffectedResources/AffectedResourceSearch.d.ts +53 -0
  66. package/Types/AffectedResources/AffectedResourceSearch.js +224 -0
  67. package/Types/AffectedResources/AffectedResourceSearch.mjs +11 -0
  68. package/Types/ArchivableValue/ArchivableValueUsage.d.mts +21 -2
  69. package/Types/ArchivableValue/ArchivableValueUsage.d.ts +21 -2
  70. package/Types/ArchivableValue/ArchivableValueUsage.js +91 -12
  71. package/Types/ArchivableValue/ArchivableValueUsage.mjs +1 -0
  72. package/Types/CodeRepository/CodeRepositorySetting.d.mts +1 -0
  73. package/Types/CodeRepository/CodeRepositorySetting.d.ts +1 -0
  74. package/Types/CodeRepository/CodeRepositorySetting.js +2 -0
  75. package/Types/Color.d.mts +0 -2
  76. package/Types/Color.d.ts +0 -2
  77. package/Types/Color.js +0 -14
  78. package/Types/Database/DatabaseProperty.d.mts +0 -2
  79. package/Types/Database/DatabaseProperty.d.ts +0 -2
  80. package/Types/Database/DatabaseProperty.js +0 -3
  81. package/Types/Date.d.mts +0 -2
  82. package/Types/Date.d.ts +0 -2
  83. package/Types/Date.js +0 -23
  84. package/Types/Domain.d.mts +0 -2
  85. package/Types/Domain.d.ts +0 -2
  86. package/Types/Domain.js +0 -14
  87. package/Types/Email/EmailTemplateType.d.mts +3 -0
  88. package/Types/Email/EmailTemplateType.d.ts +3 -0
  89. package/Types/Email/EmailTemplateType.js +4 -0
  90. package/Types/Email.d.mts +0 -2
  91. package/Types/Email.d.ts +0 -2
  92. package/Types/Email.js +0 -15
  93. package/Types/IP/IP.d.mts +0 -2
  94. package/Types/IP/IP.d.ts +0 -2
  95. package/Types/IP/IP.js +0 -14
  96. package/Types/Link.d.mts +1 -0
  97. package/Types/Link.d.ts +1 -0
  98. package/Types/Monitor/CriteriaAlert.d.mts +0 -2
  99. package/Types/Monitor/CriteriaAlert.d.ts +0 -2
  100. package/Types/Monitor/CriteriaAlert.js +0 -18
  101. package/Types/Monitor/CriteriaAlert.mjs +1 -2
  102. package/Types/Monitor/CriteriaFilter.d.mts +0 -2
  103. package/Types/Monitor/CriteriaFilter.d.ts +0 -2
  104. package/Types/Monitor/CriteriaFilter.js +1 -42
  105. package/Types/Monitor/CriteriaFilter.mjs +0 -1
  106. package/Types/Monitor/CriteriaIncident.d.mts +0 -2
  107. package/Types/Monitor/CriteriaIncident.d.ts +0 -2
  108. package/Types/Monitor/CriteriaIncident.js +0 -23
  109. package/Types/Monitor/CriteriaIncident.mjs +1 -2
  110. package/Types/Monitor/IncomingMonitor/IncidentGroupingConfig.d.mts +0 -2
  111. package/Types/Monitor/IncomingMonitor/IncidentGroupingConfig.d.ts +0 -2
  112. package/Types/Monitor/IncomingMonitor/IncidentGroupingConfig.js +0 -11
  113. package/Types/Monitor/IncomingMonitor/IncidentGroupingConfig.mjs +1 -2
  114. package/Types/Monitor/MonitorCriteria.d.mts +0 -2
  115. package/Types/Monitor/MonitorCriteria.d.ts +0 -2
  116. package/Types/Monitor/MonitorCriteria.js +0 -21
  117. package/Types/Monitor/MonitorCriteriaInstance.d.mts +0 -2
  118. package/Types/Monitor/MonitorCriteriaInstance.d.ts +0 -2
  119. package/Types/Monitor/MonitorCriteriaInstance.js +0 -54
  120. package/Types/Monitor/MonitorStep.d.mts +0 -2
  121. package/Types/Monitor/MonitorStep.d.ts +0 -2
  122. package/Types/Monitor/MonitorStep.js +0 -80
  123. package/Types/Monitor/MonitorSteps.d.mts +0 -2
  124. package/Types/Monitor/MonitorSteps.d.ts +0 -2
  125. package/Types/Monitor/MonitorSteps.js +0 -31
  126. package/Types/Name.d.mts +0 -2
  127. package/Types/Name.d.ts +0 -2
  128. package/Types/Name.js +0 -14
  129. package/Types/NetFlow/NetworkAddressName.d.mts +30 -0
  130. package/Types/NetFlow/NetworkAddressName.d.ts +30 -0
  131. package/Types/NetFlow/NetworkAddressName.js +149 -0
  132. package/Types/NetFlow/NetworkAddressName.mjs +6 -0
  133. package/Types/NetFlow/NetworkTraffic.d.mts +20 -0
  134. package/Types/NetFlow/NetworkTraffic.d.ts +20 -0
  135. package/Types/NetFlow/NetworkTraffic.js +5 -1
  136. package/Types/NetFlow/NetworkTraffic.mjs +2 -0
  137. package/Types/NetworkController/NetworkControllerReadSummary.d.mts +2 -0
  138. package/Types/NetworkController/NetworkControllerReadSummary.d.ts +2 -0
  139. package/Types/NetworkController/NetworkControllerReadSummary.js +7 -1
  140. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.d.mts +47 -1
  141. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.d.ts +47 -1
  142. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.js +173 -8
  143. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.mjs +7 -0
  144. package/Types/NotificationSetting/NotificationEmailRollupCategory.d.mts +1 -0
  145. package/Types/NotificationSetting/NotificationEmailRollupCategory.d.ts +1 -0
  146. package/Types/NotificationSetting/NotificationEmailRollupCategory.js +12 -0
  147. package/Types/NotificationSetting/NotificationEmailRollupPolicy.js +6 -0
  148. package/Types/NotificationSetting/NotificationSettingEventType.d.mts +3 -0
  149. package/Types/NotificationSetting/NotificationSettingEventType.d.ts +3 -0
  150. package/Types/NotificationSetting/NotificationSettingEventType.js +15 -0
  151. package/Types/ObjectID.d.mts +0 -1
  152. package/Types/ObjectID.d.ts +0 -1
  153. package/Types/ObjectID.js +0 -9
  154. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunEnding.d.mts +4 -0
  155. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunEnding.d.ts +4 -0
  156. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunEnding.js +25 -1
  157. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunEnding.mjs +4 -0
  158. package/Types/OnCallDutyPolicy/OnCallEmptyLevel.d.mts +15 -0
  159. package/Types/OnCallDutyPolicy/OnCallEmptyLevel.d.ts +15 -0
  160. package/Types/OnCallDutyPolicy/OnCallEmptyLevel.js +118 -0
  161. package/Types/OnCallDutyPolicy/OnCallEmptyLevel.mjs +9 -0
  162. package/Types/Permission.d.mts +8 -0
  163. package/Types/Permission.d.ts +8 -0
  164. package/Types/Permission.js +87 -3
  165. package/Types/Phone.d.mts +0 -2
  166. package/Types/Phone.d.ts +0 -2
  167. package/Types/Phone.js +0 -14
  168. package/Types/Port.d.mts +0 -2
  169. package/Types/Port.d.ts +0 -2
  170. package/Types/Port.js +0 -14
  171. package/Types/ProviderLogo/ProviderLogo.d.mts +8 -1
  172. package/Types/ProviderLogo/ProviderLogo.d.ts +8 -1
  173. package/Types/ProviderLogo/ProviderLogo.js +14 -0
  174. package/Types/SecurityCase/SecurityCaseEventEvidence.d.mts +67 -0
  175. package/Types/SecurityCase/SecurityCaseEventEvidence.d.ts +67 -0
  176. package/Types/SecurityCase/SecurityCaseEventEvidence.js +271 -0
  177. package/Types/SecurityCase/SecurityCaseEventEvidence.mjs +13 -0
  178. package/Types/SecurityCase/SecurityCaseEvidenceKind.d.mts +8 -0
  179. package/Types/SecurityCase/SecurityCaseEvidenceKind.d.ts +8 -0
  180. package/Types/SecurityCase/SecurityCaseEvidenceKind.js +34 -0
  181. package/Types/SecurityCase/SecurityCaseEvidenceKind.mjs +4 -0
  182. package/Types/SecurityEvent/SecurityHunt.d.mts +122 -0
  183. package/Types/SecurityEvent/SecurityHunt.d.ts +122 -0
  184. package/Types/SecurityEvent/SecurityHunt.js +391 -0
  185. package/Types/SecurityEvent/SecurityHunt.mjs +32 -0
  186. package/Types/SecurityEvent/SecurityWatchlist.d.mts +167 -0
  187. package/Types/SecurityEvent/SecurityWatchlist.d.ts +167 -0
  188. package/Types/SecurityEvent/SecurityWatchlist.js +648 -0
  189. package/Types/SecurityEvent/SecurityWatchlist.mjs +51 -0
  190. package/Types/SecurityEvent/SigmaRule.d.mts +2 -0
  191. package/Types/SecurityEvent/SigmaRule.d.ts +2 -0
  192. package/Types/SecurityEvent/SigmaRule.js +5 -0
  193. package/Types/Telemetry/OpenTelemetryGuides.js +177 -5
  194. package/Types/Version.d.mts +0 -2
  195. package/Types/Version.d.ts +0 -2
  196. package/Types/Version.js +0 -14
  197. package/Types/Workflow/AffectedResourcesSetting.d.mts +13 -0
  198. package/Types/Workflow/AffectedResourcesSetting.d.ts +13 -0
  199. package/Types/Workflow/AffectedResourcesSetting.js +120 -0
  200. package/Types/Workflow/AffectedResourcesSetting.mjs +8 -0
  201. package/Types/Workflow/Components/BaseModel.js +15 -3
  202. package/Types/Workflow/Documentation/DatabaseDocumentation.js +36 -0
  203. package/Types/Workflow/RunRecord.d.mts +3 -14
  204. package/Types/Workflow/RunRecord.d.ts +3 -14
  205. package/Types/Workflow/RunRecord.js +10 -51
  206. package/Utils/AI/InvestigationLogStall.d.mts +38 -0
  207. package/Utils/AI/InvestigationLogStall.d.ts +38 -0
  208. package/Utils/AI/InvestigationLogStall.js +163 -0
  209. package/Utils/AI/InvestigationLogStall.mjs +11 -0
  210. package/Utils/Inventory/AssetFactSource.d.mts +6 -2
  211. package/Utils/Inventory/AssetFactSource.d.ts +6 -2
  212. package/Utils/Inventory/AssetFactSource.js +18 -1
  213. package/Utils/Inventory/AssetFactSource.mjs +1 -0
  214. package/Utils/Markdown/FeedLead.d.mts +10 -0
  215. package/Utils/Markdown/FeedLead.d.ts +10 -0
  216. package/Utils/Markdown/FeedLead.js +198 -0
  217. package/Utils/Markdown/FeedLead.mjs +8 -0
  218. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.d.mts +9 -1
  219. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.d.ts +9 -1
  220. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.js +139 -18
  221. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.mjs +1 -0
  222. package/Utils/NetworkDevice/NetworkDeviceRefresh.d.mts +88 -0
  223. package/Utils/NetworkDevice/NetworkDeviceRefresh.d.ts +88 -0
  224. package/Utils/NetworkDevice/NetworkDeviceRefresh.js +232 -0
  225. package/Utils/NetworkDevice/NetworkDeviceRefresh.mjs +16 -0
  226. package/Utils/NetworkTraffic/NetworkAddressBlock.d.mts +20 -0
  227. package/Utils/NetworkTraffic/NetworkAddressBlock.d.ts +20 -0
  228. package/Utils/NetworkTraffic/NetworkAddressBlock.js +264 -0
  229. package/Utils/NetworkTraffic/NetworkAddressBlock.mjs +3 -0
  230. package/Utils/Project/RecordNumber.d.mts +43 -0
  231. package/Utils/Project/RecordNumber.d.ts +43 -0
  232. package/Utils/Project/RecordNumber.js +151 -0
  233. package/Utils/Project/RecordNumber.mjs +6 -0
  234. package/Utils/Schema/MonitorSchemas.d.mts +9 -0
  235. package/Utils/Schema/MonitorSchemas.d.ts +9 -0
  236. package/Utils/Schema/MonitorSchemas.js +291 -0
  237. package/Utils/Schema/MonitorSchemas.mjs +9 -0
  238. package/Utils/Schema/TypeSchemas.d.mts +12 -0
  239. package/Utils/Schema/TypeSchemas.d.ts +12 -0
  240. package/Utils/Schema/TypeSchemas.js +176 -0
  241. package/Utils/Schema/TypeSchemas.mjs +11 -0
  242. package/Utils/Schema/Zod.js +17 -17
  243. package/Utils/SecurityCase/SecurityCaseMarkdown.d.mts +43 -0
  244. package/Utils/SecurityCase/SecurityCaseMarkdown.d.ts +43 -0
  245. package/Utils/SecurityCase/SecurityCaseMarkdown.js +89 -0
  246. package/Utils/SecurityCase/SecurityCaseMarkdown.mjs +11 -0
  247. package/Utils/SecurityCase/SecurityCasePriorities.d.mts +2 -0
  248. package/Utils/SecurityCase/SecurityCasePriorities.d.ts +2 -0
  249. package/Utils/SecurityCase/SecurityCasePriorities.js +15 -1
  250. package/Utils/SecurityCase/SecurityCaseTargets.d.mts +128 -0
  251. package/Utils/SecurityCase/SecurityCaseTargets.d.ts +128 -0
  252. package/Utils/SecurityCase/SecurityCaseTargets.js +482 -0
  253. package/Utils/SecurityCase/SecurityCaseTargets.mjs +28 -0
  254. package/Utils/SecurityEvent/SecurityEventSearch.d.mts +56 -0
  255. package/Utils/SecurityEvent/SecurityEventSearch.d.ts +56 -0
  256. package/Utils/SecurityEvent/SecurityEventSearch.js +422 -0
  257. package/Utils/SecurityEvent/SecurityEventSearch.mjs +21 -0
  258. package/Utils/SecurityEvent/SecurityHuntSearch.d.mts +12 -0
  259. package/Utils/SecurityEvent/SecurityHuntSearch.d.ts +12 -0
  260. package/Utils/SecurityEvent/SecurityHuntSearch.js +51 -0
  261. package/Utils/SecurityEvent/SecurityHuntSearch.mjs +3 -0
  262. package/Utils/SecurityEvent/Sigma/SigmaRuleParser.js +22 -0
  263. package/Utils/SecurityEvent/Sigma/SigmaWatchlists.d.mts +24 -0
  264. package/Utils/SecurityEvent/Sigma/SigmaWatchlists.d.ts +24 -0
  265. package/Utils/SecurityEvent/Sigma/SigmaWatchlists.js +183 -0
  266. package/Utils/SecurityEvent/Sigma/SigmaWatchlists.mjs +9 -0
  267. package/Utils/Suggestions/TracePerformanceFixSuggestion.d.mts +9 -0
  268. package/Utils/Suggestions/TracePerformanceFixSuggestion.d.ts +9 -0
  269. package/Utils/Suggestions/TracePerformanceFixSuggestion.js +69 -1
  270. package/Utils/Suggestions/TracePerformanceFixSuggestion.mjs +4 -0
  271. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { JSONArray } from "../JSON";
1
+ import { JSONArray, JSONObject } from "../JSON";
2
2
  export declare enum ArchivableValueDeleteEffect {
3
3
  Refused = "Refused",
4
4
  Deleted = "Deleted",
@@ -8,7 +8,8 @@ export declare enum ArchivableValueDeleteEffect {
8
8
  }
9
9
  export declare enum ArchivableValueUsageKind {
10
10
  Records = "Records",
11
- Settings = "Settings"
11
+ Settings = "Settings",
12
+ Personal = "Personal"
12
13
  }
13
14
  export interface ArchivableValueUsageItem {
14
15
  tableName: string;
@@ -16,12 +17,30 @@ export interface ArchivableValueUsageItem {
16
17
  singularTitle: string;
17
18
  count: number;
18
19
  isCountCapped: boolean;
20
+ totalCount?: number | undefined;
21
+ isTotalCountCapped?: boolean | undefined;
19
22
  effect: ArchivableValueDeleteEffect;
20
23
  kind: ArchivableValueUsageKind;
21
24
  }
25
+ export declare enum ArchivableValuesUsagePurpose {
26
+ Archive = "Archive",
27
+ Delete = "Delete"
28
+ }
29
+ export interface ArchivableValuesUsage {
30
+ usage: Array<ArchivableValueUsageItem>;
31
+ refusedValueIds: Array<string>;
32
+ refusedUsage: Array<ArchivableValueUsageItem>;
33
+ }
22
34
  export default class ArchivableValueUsage {
23
35
  static toJSONArray(items: Array<ArchivableValueUsageItem>): JSONArray;
24
36
  static fromJSONArray(value: unknown): Array<ArchivableValueUsageItem>;
37
+ static valuesUsageToJSON(usage: ArchivableValuesUsage): JSONObject;
38
+ static valuesUsageFromJSON(value: unknown): ArchivableValuesUsage;
25
39
  static isDeleteRefused(items: Array<ArchivableValueUsageItem>): boolean;
26
40
  static getSettings(items: Array<ArchivableValueUsageItem>): Array<ArchivableValueUsageItem>;
41
+ static getPersonal(items: Array<ArchivableValueUsageItem>): Array<ArchivableValueUsageItem>;
42
+ static getTotalCount(item: ArchivableValueUsageItem): {
43
+ count: number;
44
+ isCountCapped: boolean;
45
+ };
27
46
  }
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ArchivableValueUsageKind = exports.ArchivableValueDeleteEffect = void 0;
3
+ exports.ArchivableValuesUsagePurpose = exports.ArchivableValueUsageKind = exports.ArchivableValueDeleteEffect = void 0;
4
4
  /*
5
5
  * What the server answers about a value's uses (ArchivableValueUsage, the
6
- * `<value route>/:id/usage` endpoint), and what the dashboard reads to say
7
- * what archiving keeps and what deleting would change.
6
+ * `<value route>/:id/usage` endpoint, and `<value route>/usage` for several
7
+ * values at once), and what the dashboard reads to say what archiving keeps
8
+ * and what deleting would change.
8
9
  */
9
10
  // What deleting the value does to these records.
10
11
  var ArchivableValueDeleteEffect;
@@ -21,21 +22,49 @@ var ArchivableValueDeleteEffect;
21
22
  ArchivableValueDeleteEffect["LeftDangling"] = "LeftDangling";
22
23
  })(ArchivableValueDeleteEffect || (exports.ArchivableValueDeleteEffect = ArchivableValueDeleteEffect = {}));
23
24
  /*
24
- * Records that have the value (incidents, monitors, state history), or
25
- * settings that use it to set or match it (rules, templates, criteria,
26
- * workflows) - which keep using an archived value until they are changed.
25
+ * What kind of thing uses the value:
26
+ *
27
+ * - Records have it (incidents, monitors, state history): archiving
28
+ * changes nothing for them.
29
+ * - Settings are the project's own set-up that sets the value or matches
30
+ * on it (rules, templates, monitor criteria, workflows): they keep using
31
+ * an archived value until someone changes them.
32
+ * - Personal settings are a person's own (the on-call rules each person
33
+ * has for a severity, their notification settings): counted by person,
34
+ * since nobody thinks of them as the project's rules. They stay as they
35
+ * are when the value is archived, and keep working for the records that
36
+ * keep it.
27
37
  */
28
38
  var ArchivableValueUsageKind;
29
39
  (function (ArchivableValueUsageKind) {
30
40
  ArchivableValueUsageKind["Records"] = "Records";
31
41
  ArchivableValueUsageKind["Settings"] = "Settings";
42
+ ArchivableValueUsageKind["Personal"] = "Personal";
32
43
  })(ArchivableValueUsageKind || (exports.ArchivableValueUsageKind = ArchivableValueUsageKind = {}));
44
+ /*
45
+ * What a bulk Archive's or Delete's dialog asks about the values it was
46
+ * opened on (POST <value route>/usage).
47
+ */
48
+ var ArchivableValuesUsagePurpose;
49
+ (function (ArchivableValuesUsagePurpose) {
50
+ // Every use of any of them: what keeps using them once they are archived.
51
+ ArchivableValuesUsagePurpose["Archive"] = "Archive";
52
+ /*
53
+ * Which of them records still have - a delete of those is refused, and
54
+ * they are left as they are - and what deleting the others changes.
55
+ */
56
+ ArchivableValuesUsagePurpose["Delete"] = "Delete";
57
+ })(ArchivableValuesUsagePurpose || (exports.ArchivableValuesUsagePurpose = ArchivableValuesUsagePurpose = {}));
33
58
  const EFFECTS = Object.values(ArchivableValueDeleteEffect);
34
59
  const KINDS = Object.values(ArchivableValueUsageKind);
60
+ const readCount = (value) => {
61
+ const count = Number(value);
62
+ return Number.isFinite(count) && count > 0 ? count : null;
63
+ };
35
64
  class ArchivableValueUsage {
36
65
  static toJSONArray(items) {
37
66
  return items.map((item) => {
38
- return {
67
+ const json = {
39
68
  tableName: item.tableName,
40
69
  title: item.title,
41
70
  singularTitle: item.singularTitle,
@@ -44,6 +73,11 @@ class ArchivableValueUsage {
44
73
  effect: item.effect,
45
74
  kind: item.kind,
46
75
  };
76
+ if (item.totalCount !== undefined) {
77
+ json["totalCount"] = item.totalCount;
78
+ json["isTotalCountCapped"] = Boolean(item.isTotalCountCapped);
79
+ }
80
+ return json;
47
81
  });
48
82
  }
49
83
  // What came back from the server, keeping only well-formed items.
@@ -57,16 +91,15 @@ class ArchivableValueUsage {
57
91
  continue;
58
92
  }
59
93
  const record = entry;
60
- const count = Number(record["count"]);
94
+ const count = readCount(record["count"]);
61
95
  if (typeof record["tableName"] !== "string" ||
62
96
  typeof record["title"] !== "string" ||
63
- !Number.isFinite(count) ||
64
- count <= 0 ||
97
+ count === null ||
65
98
  !EFFECTS.includes(record["effect"]) ||
66
99
  !KINDS.includes(record["kind"])) {
67
100
  continue;
68
101
  }
69
- items.push({
102
+ const item = {
70
103
  tableName: record["tableName"],
71
104
  title: record["title"],
72
105
  singularTitle: typeof record["singularTitle"] === "string" && record["singularTitle"]
@@ -76,10 +109,40 @@ class ArchivableValueUsage {
76
109
  isCountCapped: record["isCountCapped"] === true,
77
110
  effect: record["effect"],
78
111
  kind: record["kind"],
79
- });
112
+ };
113
+ // A total is never below the count it includes.
114
+ const totalCount = readCount(record["totalCount"]);
115
+ if (totalCount !== null && totalCount >= count) {
116
+ item.totalCount = totalCount;
117
+ item.isTotalCountCapped = record["isTotalCountCapped"] === true;
118
+ }
119
+ items.push(item);
80
120
  }
81
121
  return items;
82
122
  }
123
+ static valuesUsageToJSON(usage) {
124
+ return {
125
+ usage: ArchivableValueUsage.toJSONArray(usage.usage),
126
+ refusedValueIds: [...usage.refusedValueIds],
127
+ refusedUsage: ArchivableValueUsage.toJSONArray(usage.refusedUsage),
128
+ };
129
+ }
130
+ // What came back for several values, keeping only what is well formed.
131
+ static valuesUsageFromJSON(value) {
132
+ const record = value && typeof value === "object"
133
+ ? value
134
+ : {};
135
+ const refusedValueIds = Array.isArray(record["refusedValueIds"])
136
+ ? record["refusedValueIds"].filter((id) => {
137
+ return typeof id === "string" && id.length > 0;
138
+ })
139
+ : [];
140
+ return {
141
+ usage: ArchivableValueUsage.fromJSONArray(record["usage"]),
142
+ refusedValueIds: refusedValueIds,
143
+ refusedUsage: ArchivableValueUsage.fromJSONArray(record["refusedUsage"]),
144
+ };
145
+ }
83
146
  // Whether something still has the value, so a delete is refused.
84
147
  static isDeleteRefused(items) {
85
148
  return items.some((item) => {
@@ -92,5 +155,21 @@ class ArchivableValueUsage {
92
155
  return item.kind === ArchivableValueUsageKind.Settings;
93
156
  });
94
157
  }
158
+ // People's own settings that name it, which stay as they are.
159
+ static getPersonal(items) {
160
+ return items.filter((item) => {
161
+ return item.kind === ArchivableValueUsageKind.Personal;
162
+ });
163
+ }
164
+ // The number to show for the table's line: every effect together.
165
+ static getTotalCount(item) {
166
+ if (item.totalCount !== undefined && item.totalCount >= item.count) {
167
+ return {
168
+ count: item.totalCount,
169
+ isCountCapped: Boolean(item.isTotalCountCapped),
170
+ };
171
+ }
172
+ return { count: item.count, isCountCapped: item.isCountCapped };
173
+ }
95
174
  }
96
175
  exports.default = ArchivableValueUsage;
@@ -2,3 +2,4 @@ import commonJsModule from "./ArchivableValueUsage.js";
2
2
  export default commonJsModule.default;
3
3
  export const ArchivableValueDeleteEffect = commonJsModule.ArchivableValueDeleteEffect;
4
4
  export const ArchivableValueUsageKind = commonJsModule.ArchivableValueUsageKind;
5
+ export const ArchivableValuesUsagePurpose = commonJsModule.ArchivableValuesUsagePurpose;
@@ -5,6 +5,7 @@ export declare enum CodeRepositorySetting {
5
5
  PullRequests = "pull-requests",
6
6
  TriggerLabel = "trigger-label",
7
7
  ProductionReviewComment = "production-review-comment",
8
+ ProductionReviewLlmProvider = "production-review-llm-provider",
8
9
  Commands = "commands",
9
10
  Branches = "branches"
10
11
  }
@@ -5,6 +5,7 @@ export declare enum CodeRepositorySetting {
5
5
  PullRequests = "pull-requests",
6
6
  TriggerLabel = "trigger-label",
7
7
  ProductionReviewComment = "production-review-comment",
8
+ ProductionReviewLlmProvider = "production-review-llm-provider",
8
9
  Commands = "commands",
9
10
  Branches = "branches"
10
11
  }
@@ -28,6 +28,8 @@ var CodeRepositorySetting;
28
28
  CodeRepositorySetting["PullRequests"] = "pull-requests";
29
29
  CodeRepositorySetting["TriggerLabel"] = "trigger-label";
30
30
  CodeRepositorySetting["ProductionReviewComment"] = "production-review-comment";
31
+ // The LLM provider OneUptime AI reads pull requests with in its reviews.
32
+ CodeRepositorySetting["ProductionReviewLlmProvider"] = "production-review-llm-provider";
31
33
  // Only on a repository whose operator set build and test commands.
32
34
  CodeRepositorySetting["Commands"] = "commands";
33
35
  /*
package/Types/Color.d.mts CHANGED
@@ -1,4 +1,3 @@
1
- import { ZodSchema } from "../Utils/Schema/Zod.mjs";
2
1
  import DatabaseProperty from "./Database/DatabaseProperty.mjs";
3
2
  import { JSONObject } from "./JSON.mjs";
4
3
  import { FindOperator } from "typeorm";
@@ -22,5 +21,4 @@ export default class Color extends DatabaseProperty {
22
21
  static rgbToColor(rgb: RGB): Color;
23
22
  static fromString(color: string): Color;
24
23
  static shouldUseDarkText(color: Color): boolean;
25
- static getSchema(): ZodSchema;
26
24
  }
package/Types/Color.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { ZodSchema } from "../Utils/Schema/Zod";
2
1
  import DatabaseProperty from "./Database/DatabaseProperty";
3
2
  import { JSONObject } from "./JSON";
4
3
  import { FindOperator } from "typeorm";
@@ -22,5 +21,4 @@ export default class Color extends DatabaseProperty {
22
21
  static rgbToColor(rgb: RGB): Color;
23
22
  static fromString(color: string): Color;
24
23
  static shouldUseDarkText(color: Color): boolean;
25
- static getSchema(): ZodSchema;
26
24
  }
package/Types/Color.js CHANGED
@@ -3,7 +3,6 @@ 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
- const Zod_1 = __importDefault(require("../Utils/Schema/Zod"));
7
6
  const RefusedValue_1 = require("../Utils/RefusedValue");
8
7
  const DatabaseProperty_1 = __importDefault(require("./Database/DatabaseProperty"));
9
8
  const BadDataException_1 = __importDefault(require("./Exception/BadDataException"));
@@ -81,18 +80,5 @@ class Color extends DatabaseProperty_1.default {
81
80
  }
82
81
  return false;
83
82
  }
84
- static getSchema() {
85
- return Zod_1.default.object({
86
- _type: Zod_1.default.literal(JSON_1.ObjectType.Color),
87
- value: Zod_1.default.string().openapi({
88
- type: "string",
89
- example: "#ff0000",
90
- }),
91
- }).openapi({
92
- type: "object",
93
- description: "Color object",
94
- example: { _type: JSON_1.ObjectType.Color, value: "#ff0000" },
95
- });
96
- }
97
83
  }
98
84
  exports.default = Color;
@@ -1,4 +1,3 @@
1
- import { ZodSchema } from "zod";
2
1
  import { JSONArray, JSONObject } from "../JSON.mjs";
3
2
  import SerializableObject from "../SerializableObject.mjs";
4
3
  import { FindOperator } from "typeorm";
@@ -10,5 +9,4 @@ export default class DatabaseProperty extends SerializableObject {
10
9
  protected static _fromDatabase(value: string | number | JSONObject | JSONArray): DatabaseProperty | Array<DatabaseProperty> | null;
11
10
  protected static _toDatabase(value: DatabaseProperty | FindOperator<DatabaseProperty>): string | number | JSONObject | JSONArray | null;
12
11
  static getDatabaseTransformer(): ValueTransformer;
13
- static getSchema(): ZodSchema;
14
12
  }
@@ -1,4 +1,3 @@
1
- import { ZodSchema } from "zod";
2
1
  import { JSONArray, JSONObject } from "../JSON";
3
2
  import SerializableObject from "../SerializableObject";
4
3
  import { FindOperator } from "typeorm";
@@ -10,5 +9,4 @@ export default class DatabaseProperty extends SerializableObject {
10
9
  protected static _fromDatabase(value: string | number | JSONObject | JSONArray): DatabaseProperty | Array<DatabaseProperty> | null;
11
10
  protected static _toDatabase(value: DatabaseProperty | FindOperator<DatabaseProperty>): string | number | JSONObject | JSONArray | null;
12
11
  static getDatabaseTransformer(): ValueTransformer;
13
- static getSchema(): ZodSchema;
14
12
  }
@@ -98,8 +98,5 @@ class DatabaseProperty extends SerializableObject_1.default {
98
98
  },
99
99
  };
100
100
  }
101
- static getSchema() {
102
- throw new NotImplementedException_1.default();
103
- }
104
101
  }
105
102
  exports.default = DatabaseProperty;
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,9 @@ 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",
98
+ SecurityHuntFound = "SecurityHuntFound.hbs",
96
99
  ProjectSubscriptionOverdue = "ProjectSubscriptionOverdue.hbs",
97
100
  Invoice = "Invoice.hbs",
98
101
  ClickhouseCapacityWarning = "ClickhouseCapacityWarning.hbs",
@@ -93,6 +93,9 @@ 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",
98
+ SecurityHuntFound = "SecurityHuntFound.hbs",
96
99
  ProjectSubscriptionOverdue = "ProjectSubscriptionOverdue.hbs",
97
100
  Invoice = "Invoice.hbs",
98
101
  ClickhouseCapacityWarning = "ClickhouseCapacityWarning.hbs",
@@ -97,6 +97,10 @@ 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";
102
+ // A scheduled hunt found security events (SecurityHuntNotifications).
103
+ EmailTemplateType["SecurityHuntFound"] = "SecurityHuntFound.hbs";
100
104
  EmailTemplateType["ProjectSubscriptionOverdue"] = "ProjectSubscriptionOverdue.hbs";
101
105
  EmailTemplateType["Invoice"] = "Invoice.hbs";
102
106
  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;
package/Types/Link.d.mts CHANGED
@@ -6,4 +6,5 @@ export default interface Link {
6
6
  openInNewTab?: boolean | undefined;
7
7
  isRecordName?: boolean | undefined;
8
8
  recordName?: string | undefined;
9
+ recordNumber?: string | undefined;
9
10
  }
package/Types/Link.d.ts CHANGED
@@ -6,4 +6,5 @@ export default interface Link {
6
6
  openInNewTab?: boolean | undefined;
7
7
  isRecordName?: boolean | undefined;
8
8
  recordName?: string | undefined;
9
+ recordNumber?: string | undefined;
9
10
  }
@@ -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;