@oneuptime/common 17.0.0 → 17.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2016) hide show
  1. package/Models/AnalyticsModels/AnalyticsBaseModel/AnalyticsBaseModel.d.mts +2 -1
  2. package/Models/AnalyticsModels/AnalyticsBaseModel/AnalyticsBaseModel.d.ts +2 -1
  3. package/Models/AnalyticsModels/AnalyticsBaseModel/AnalyticsBaseModel.js +33 -1
  4. package/Models/AnalyticsModels/AuditLog.d.mts +10 -0
  5. package/Models/AnalyticsModels/AuditLog.d.ts +10 -0
  6. package/Models/AnalyticsModels/AuditLog.js +118 -0
  7. package/Models/AnalyticsModels/ExceptionInstance.d.mts +2 -0
  8. package/Models/AnalyticsModels/ExceptionInstance.d.ts +2 -0
  9. package/Models/AnalyticsModels/ExceptionInstance.js +27 -0
  10. package/Models/AnalyticsModels/KubernetesCostAllocation.d.mts +18 -0
  11. package/Models/AnalyticsModels/KubernetesCostAllocation.d.ts +18 -0
  12. package/Models/AnalyticsModels/KubernetesCostAllocation.js +226 -1
  13. package/Models/AnalyticsModels/RumProductAnalyticsSession.js +15 -8
  14. package/Models/AnalyticsModels/SecurityAddressVault.d.mts +16 -0
  15. package/Models/AnalyticsModels/SecurityAddressVault.d.ts +16 -0
  16. package/Models/AnalyticsModels/SecurityAddressVault.js +179 -0
  17. package/Models/AnalyticsModels/SecurityAddressVault.mjs +3 -0
  18. package/Models/AnalyticsModels/SecurityEvent.d.mts +2 -0
  19. package/Models/AnalyticsModels/SecurityEvent.d.ts +2 -0
  20. package/Models/AnalyticsModels/SecurityEvent.js +28 -0
  21. package/Models/AnalyticsModels/SecurityEvent.mjs +2 -0
  22. package/Models/DatabaseModels/AIAgent.js +2 -0
  23. package/Models/DatabaseModels/AIAgentTaskPullRequest.js +2 -0
  24. package/Models/DatabaseModels/AIPostmortemRule.js +1 -1
  25. package/Models/DatabaseModels/AIRun.d.mts +3 -0
  26. package/Models/DatabaseModels/AIRun.d.ts +3 -0
  27. package/Models/DatabaseModels/AIRun.js +64 -0
  28. package/Models/DatabaseModels/Alert.js +6 -0
  29. package/Models/DatabaseModels/AlertEpisode.js +16 -0
  30. package/Models/DatabaseModels/AlertEpisodeInternalNote.js +2 -0
  31. package/Models/DatabaseModels/AlertEpisodeMember.js +3 -0
  32. package/Models/DatabaseModels/AlertEpisodeStateTimeline.js +2 -0
  33. package/Models/DatabaseModels/AlertGroupingRule.js +1 -1
  34. package/Models/DatabaseModels/AlertIncidentRule.js +1 -1
  35. package/Models/DatabaseModels/AlertInternalNote.js +2 -0
  36. package/Models/DatabaseModels/AlertMeasurement.js +1 -1
  37. package/Models/DatabaseModels/AlertReminderRule.js +1 -1
  38. package/Models/DatabaseModels/AlertSeverity.js +1 -1
  39. package/Models/DatabaseModels/AlertState.js +1 -1
  40. package/Models/DatabaseModels/AlertStateTimeline.js +2 -0
  41. package/Models/DatabaseModels/ApiKeyPermission.js +5 -1
  42. package/Models/DatabaseModels/CephCluster.js +16 -0
  43. package/Models/DatabaseModels/CloudAccount.js +19 -0
  44. package/Models/DatabaseModels/CloudConnection.d.mts +1 -0
  45. package/Models/DatabaseModels/CloudConnection.d.ts +1 -0
  46. package/Models/DatabaseModels/CloudConnection.js +50 -1
  47. package/Models/DatabaseModels/CloudResource.js +25 -1
  48. package/Models/DatabaseModels/Dashboard.d.mts +2 -0
  49. package/Models/DatabaseModels/Dashboard.d.ts +2 -0
  50. package/Models/DatabaseModels/Dashboard.js +112 -0
  51. package/Models/DatabaseModels/DashboardOidc.d.mts +28 -0
  52. package/Models/DatabaseModels/DashboardOidc.d.ts +28 -0
  53. package/Models/DatabaseModels/DashboardOidc.js +737 -0
  54. package/Models/DatabaseModels/DashboardOidc.mjs +2 -0
  55. package/Models/DatabaseModels/DashboardPrivateUser.d.mts +25 -0
  56. package/Models/DatabaseModels/DashboardPrivateUser.d.ts +25 -0
  57. package/Models/DatabaseModels/DashboardPrivateUser.js +503 -0
  58. package/Models/DatabaseModels/DashboardPrivateUser.mjs +2 -0
  59. package/Models/DatabaseModels/DashboardPrivateUserSession.d.mts +30 -0
  60. package/Models/DatabaseModels/DashboardPrivateUserSession.d.ts +30 -0
  61. package/Models/DatabaseModels/DashboardPrivateUserSession.js +514 -0
  62. package/Models/DatabaseModels/DashboardPrivateUserSession.mjs +2 -0
  63. package/Models/DatabaseModels/DashboardSso.d.mts +28 -0
  64. package/Models/DatabaseModels/DashboardSso.d.ts +28 -0
  65. package/Models/DatabaseModels/DashboardSso.js +679 -0
  66. package/Models/DatabaseModels/DashboardSso.mjs +2 -0
  67. package/Models/DatabaseModels/DataAsset.d.mts +1 -0
  68. package/Models/DatabaseModels/DataAsset.d.ts +1 -0
  69. package/Models/DatabaseModels/DataAsset.js +21 -1
  70. package/Models/DatabaseModels/DataBiConnection.d.mts +1 -0
  71. package/Models/DatabaseModels/DataBiConnection.d.ts +1 -0
  72. package/Models/DatabaseModels/DataBiConnection.js +23 -0
  73. package/Models/DatabaseModels/DataPipeline.d.mts +5 -0
  74. package/Models/DatabaseModels/DataPipeline.d.ts +5 -0
  75. package/Models/DatabaseModels/DataPipeline.js +100 -0
  76. package/Models/DatabaseModels/DataPipelineOwnerRule.d.mts +21 -0
  77. package/Models/DatabaseModels/DataPipelineOwnerRule.d.ts +21 -0
  78. package/Models/DatabaseModels/DataPipelineOwnerRule.js +635 -0
  79. package/Models/DatabaseModels/DataPipelineOwnerRule.mjs +2 -0
  80. package/Models/DatabaseModels/DataSecurityComplianceSetting.d.mts +27 -0
  81. package/Models/DatabaseModels/DataSecurityComplianceSetting.d.ts +27 -0
  82. package/Models/DatabaseModels/DataSecurityComplianceSetting.js +533 -0
  83. package/Models/DatabaseModels/DataSecurityComplianceSetting.mjs +2 -0
  84. package/Models/DatabaseModels/DataSecurityIssue.js +4 -0
  85. package/Models/DatabaseModels/DataSecurityScan.js +22 -0
  86. package/Models/DatabaseModels/DataStore.d.mts +1 -0
  87. package/Models/DatabaseModels/DataStore.d.ts +1 -0
  88. package/Models/DatabaseModels/DataStore.js +94 -4
  89. package/Models/DatabaseModels/DatabaseServer.js +7 -0
  90. package/Models/DatabaseModels/DatabaseServerEndpoint.js +3 -0
  91. package/Models/DatabaseModels/DetectionRule.d.mts +2 -0
  92. package/Models/DatabaseModels/DetectionRule.d.ts +2 -0
  93. package/Models/DatabaseModels/DetectionRule.js +29 -0
  94. package/Models/DatabaseModels/DeviceManagementConnection.d.mts +25 -0
  95. package/Models/DatabaseModels/DeviceManagementConnection.d.ts +25 -0
  96. package/Models/DatabaseModels/DeviceManagementConnection.js +443 -0
  97. package/Models/DatabaseModels/DeviceManagementConnection.mjs +2 -0
  98. package/Models/DatabaseModels/DockerHost.js +13 -0
  99. package/Models/DatabaseModels/DockerSwarmCluster.js +16 -0
  100. package/Models/DatabaseModels/Domain.js +29 -1
  101. package/Models/DatabaseModels/Form.d.mts +2 -0
  102. package/Models/DatabaseModels/Form.d.ts +2 -0
  103. package/Models/DatabaseModels/Form.js +64 -0
  104. package/Models/DatabaseModels/FormOidc.d.mts +28 -0
  105. package/Models/DatabaseModels/FormOidc.d.ts +28 -0
  106. package/Models/DatabaseModels/FormOidc.js +735 -0
  107. package/Models/DatabaseModels/FormOidc.mjs +2 -0
  108. package/Models/DatabaseModels/FormPrivateUser.d.mts +25 -0
  109. package/Models/DatabaseModels/FormPrivateUser.d.ts +25 -0
  110. package/Models/DatabaseModels/FormPrivateUser.js +503 -0
  111. package/Models/DatabaseModels/FormPrivateUser.mjs +2 -0
  112. package/Models/DatabaseModels/FormPrivateUserSession.d.mts +30 -0
  113. package/Models/DatabaseModels/FormPrivateUserSession.d.ts +30 -0
  114. package/Models/DatabaseModels/FormPrivateUserSession.js +514 -0
  115. package/Models/DatabaseModels/FormPrivateUserSession.mjs +2 -0
  116. package/Models/DatabaseModels/FormSso.d.mts +28 -0
  117. package/Models/DatabaseModels/FormSso.d.ts +28 -0
  118. package/Models/DatabaseModels/FormSso.js +677 -0
  119. package/Models/DatabaseModels/FormSso.mjs +2 -0
  120. package/Models/DatabaseModels/GlobalConfig.d.mts +1 -0
  121. package/Models/DatabaseModels/GlobalConfig.d.ts +1 -0
  122. package/Models/DatabaseModels/GlobalConfig.js +31 -0
  123. package/Models/DatabaseModels/GlobalSso.d.mts +2 -0
  124. package/Models/DatabaseModels/GlobalSso.d.ts +2 -0
  125. package/Models/DatabaseModels/GlobalSso.js +56 -0
  126. package/Models/DatabaseModels/GuidedSetupRun.d.mts +15 -0
  127. package/Models/DatabaseModels/GuidedSetupRun.d.ts +15 -0
  128. package/Models/DatabaseModels/GuidedSetupRun.js +254 -0
  129. package/Models/DatabaseModels/GuidedSetupRun.mjs +2 -0
  130. package/Models/DatabaseModels/Host.js +22 -0
  131. package/Models/DatabaseModels/HostCollectorConfig.js +1 -1
  132. package/Models/DatabaseModels/HostLogSession.d.mts +23 -0
  133. package/Models/DatabaseModels/HostLogSession.d.ts +23 -0
  134. package/Models/DatabaseModels/HostLogSession.js +373 -0
  135. package/Models/DatabaseModels/HostLogSession.mjs +2 -0
  136. package/Models/DatabaseModels/Incident.js +8 -0
  137. package/Models/DatabaseModels/IncidentCustomField.js +1 -1
  138. package/Models/DatabaseModels/IncidentEpisode.js +16 -0
  139. package/Models/DatabaseModels/IncidentEpisodeInternalNote.js +2 -0
  140. package/Models/DatabaseModels/IncidentEpisodeMember.js +3 -0
  141. package/Models/DatabaseModels/IncidentEpisodePublicNote.js +2 -0
  142. package/Models/DatabaseModels/IncidentEpisodeRoleMember.js +23 -2
  143. package/Models/DatabaseModels/IncidentEpisodeStateTimeline.js +2 -0
  144. package/Models/DatabaseModels/IncidentFeed.d.mts +1 -0
  145. package/Models/DatabaseModels/IncidentFeed.d.ts +1 -0
  146. package/Models/DatabaseModels/IncidentFeed.js +6 -0
  147. package/Models/DatabaseModels/IncidentGroupingRule.js +1 -1
  148. package/Models/DatabaseModels/IncidentInternalNote.js +2 -0
  149. package/Models/DatabaseModels/IncidentMeasurement.js +1 -1
  150. package/Models/DatabaseModels/IncidentMember.js +25 -2
  151. package/Models/DatabaseModels/IncidentPostmortemStatus.js +1 -1
  152. package/Models/DatabaseModels/IncidentPublicNote.js +2 -0
  153. package/Models/DatabaseModels/IncidentReminderRule.js +1 -1
  154. package/Models/DatabaseModels/IncidentSeverity.js +1 -1
  155. package/Models/DatabaseModels/IncidentSla.js +18 -1
  156. package/Models/DatabaseModels/IncidentSlaRule.js +1 -1
  157. package/Models/DatabaseModels/IncidentState.js +1 -1
  158. package/Models/DatabaseModels/IncidentStateTimeline.js +2 -0
  159. package/Models/DatabaseModels/IncidentTemplateOwnerTeam.d.mts +0 -1
  160. package/Models/DatabaseModels/IncidentTemplateOwnerTeam.d.ts +0 -1
  161. package/Models/DatabaseModels/IncidentTemplateOwnerTeam.js +0 -35
  162. package/Models/DatabaseModels/IncidentTemplateOwnerUser.d.mts +0 -1
  163. package/Models/DatabaseModels/IncidentTemplateOwnerUser.d.ts +0 -1
  164. package/Models/DatabaseModels/IncidentTemplateOwnerUser.js +0 -40
  165. package/Models/DatabaseModels/IncidentVideoCall.d.mts +3 -0
  166. package/Models/DatabaseModels/IncidentVideoCall.d.ts +3 -0
  167. package/Models/DatabaseModels/IncidentVideoCall.js +105 -0
  168. package/Models/DatabaseModels/IncomingCallLogItem.js +6 -0
  169. package/Models/DatabaseModels/IncomingCallPolicy.js +2 -0
  170. package/Models/DatabaseModels/IncomingCallPolicyEscalationRule.js +1 -1
  171. package/Models/DatabaseModels/Index.js +46 -0
  172. package/Models/DatabaseModels/InstanceSamlSigningKey.d.mts +5 -0
  173. package/Models/DatabaseModels/InstanceSamlSigningKey.d.ts +5 -0
  174. package/Models/DatabaseModels/InstanceSamlSigningKey.js +108 -0
  175. package/Models/DatabaseModels/InstanceSamlSigningKey.mjs +2 -0
  176. package/Models/DatabaseModels/InventoryItem.d.mts +4 -0
  177. package/Models/DatabaseModels/InventoryItem.d.ts +4 -0
  178. package/Models/DatabaseModels/InventoryItem.js +97 -0
  179. package/Models/DatabaseModels/InventoryItemRelationship.js +6 -0
  180. package/Models/DatabaseModels/IoTFleet.js +7 -0
  181. package/Models/DatabaseModels/KubernetesCluster.d.mts +3 -0
  182. package/Models/DatabaseModels/KubernetesCluster.d.ts +3 -0
  183. package/Models/DatabaseModels/KubernetesCluster.js +79 -0
  184. package/Models/DatabaseModels/KubernetesResource.d.mts +9 -0
  185. package/Models/DatabaseModels/KubernetesResource.d.ts +9 -0
  186. package/Models/DatabaseModels/KubernetesResource.js +233 -1
  187. package/Models/DatabaseModels/LogDropFilter.js +1 -1
  188. package/Models/DatabaseModels/LogPipeline.js +1 -1
  189. package/Models/DatabaseModels/LogPipelineProcessor.js +1 -1
  190. package/Models/DatabaseModels/LogScrubRule.js +1 -1
  191. package/Models/DatabaseModels/ManagedDevice.d.mts +46 -0
  192. package/Models/DatabaseModels/ManagedDevice.d.ts +46 -0
  193. package/Models/DatabaseModels/ManagedDevice.js +724 -0
  194. package/Models/DatabaseModels/ManagedDevice.mjs +2 -0
  195. package/Models/DatabaseModels/ManagedDeviceApp.d.mts +20 -0
  196. package/Models/DatabaseModels/ManagedDeviceApp.d.ts +20 -0
  197. package/Models/DatabaseModels/ManagedDeviceApp.js +320 -0
  198. package/Models/DatabaseModels/ManagedDeviceApp.mjs +2 -0
  199. package/Models/DatabaseModels/MarketplaceSubscription.js +1 -1
  200. package/Models/DatabaseModels/MessageQueue.js +6 -0
  201. package/Models/DatabaseModels/MetricPipelineRule.js +1 -1
  202. package/Models/DatabaseModels/MetricType.js +6 -0
  203. package/Models/DatabaseModels/Monitor.d.mts +4 -0
  204. package/Models/DatabaseModels/Monitor.d.ts +4 -0
  205. package/Models/DatabaseModels/Monitor.js +208 -1
  206. package/Models/DatabaseModels/MonitorProbe.js +3 -0
  207. package/Models/DatabaseModels/MonitorSecret.d.mts +2 -0
  208. package/Models/DatabaseModels/MonitorSecret.d.ts +2 -0
  209. package/Models/DatabaseModels/MonitorSecret.js +51 -1
  210. package/Models/DatabaseModels/MonitorStatus.js +1 -1
  211. package/Models/DatabaseModels/MonitorStatusTimeline.js +2 -0
  212. package/Models/DatabaseModels/NetworkDevice.js +36 -1
  213. package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.d.mts +9 -0
  214. package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.d.ts +9 -0
  215. package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.js +1 -1
  216. package/Models/DatabaseModels/NetworkDeviceNamingRule.js +1 -1
  217. package/Models/DatabaseModels/NetworkDeviceRole.js +1 -1
  218. package/Models/DatabaseModels/NetworkEndpoint.js +3 -0
  219. package/Models/DatabaseModels/NetworkSite.d.mts +2 -0
  220. package/Models/DatabaseModels/NetworkSite.d.ts +2 -0
  221. package/Models/DatabaseModels/NetworkSite.js +67 -0
  222. package/Models/DatabaseModels/NetworkSiteAssignmentRule.js +1 -1
  223. package/Models/DatabaseModels/NetworkSiteOwnerTeam.d.mts +18 -0
  224. package/Models/DatabaseModels/NetworkSiteOwnerTeam.d.ts +18 -0
  225. package/Models/DatabaseModels/NetworkSiteOwnerTeam.js +478 -0
  226. package/Models/DatabaseModels/NetworkSiteOwnerTeam.mjs +2 -0
  227. package/Models/DatabaseModels/NetworkSiteOwnerUser.d.mts +17 -0
  228. package/Models/DatabaseModels/NetworkSiteOwnerUser.d.ts +17 -0
  229. package/Models/DatabaseModels/NetworkSiteOwnerUser.js +477 -0
  230. package/Models/DatabaseModels/NetworkSiteOwnerUser.mjs +2 -0
  231. package/Models/DatabaseModels/NetworkSiteStatusTimeline.js +2 -0
  232. package/Models/DatabaseModels/OnCallDutyPolicy.js +2 -0
  233. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleSchedule.js +22 -0
  234. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleTeam.js +14 -0
  235. package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleUser.js +17 -0
  236. package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +9 -0
  237. package/Models/DatabaseModels/OnCallDutyPolicySchedule.js +2 -0
  238. package/Models/DatabaseModels/OnCallDutyPolicyTimeLog.js +2 -0
  239. package/Models/DatabaseModels/OnCallDutyPolicyUserOverride.js +28 -1
  240. package/Models/DatabaseModels/OpenStackCloud.js +25 -0
  241. package/Models/DatabaseModels/PodmanHost.js +13 -0
  242. package/Models/DatabaseModels/Probe.d.mts +2 -0
  243. package/Models/DatabaseModels/Probe.d.ts +2 -0
  244. package/Models/DatabaseModels/Probe.js +67 -0
  245. package/Models/DatabaseModels/Project.d.mts +4 -0
  246. package/Models/DatabaseModels/Project.d.ts +4 -0
  247. package/Models/DatabaseModels/Project.js +183 -2
  248. package/Models/DatabaseModels/ProjectOidc.d.mts +2 -0
  249. package/Models/DatabaseModels/ProjectOidc.d.ts +2 -0
  250. package/Models/DatabaseModels/ProjectOidc.js +57 -0
  251. package/Models/DatabaseModels/ProjectSCIM.js +3 -0
  252. package/Models/DatabaseModels/ProjectSmtpConfig.d.mts +3 -0
  253. package/Models/DatabaseModels/ProjectSmtpConfig.d.ts +3 -0
  254. package/Models/DatabaseModels/ProjectSmtpConfig.js +89 -0
  255. package/Models/DatabaseModels/ProjectSso.d.mts +4 -0
  256. package/Models/DatabaseModels/ProjectSso.d.ts +4 -0
  257. package/Models/DatabaseModels/ProjectSso.js +147 -0
  258. package/Models/DatabaseModels/ProxmoxCluster.js +13 -0
  259. package/Models/DatabaseModels/ProxmoxResource.d.mts +5 -0
  260. package/Models/DatabaseModels/ProxmoxResource.d.ts +5 -0
  261. package/Models/DatabaseModels/ProxmoxResource.js +112 -0
  262. package/Models/DatabaseModels/PublicNoteApprovalStep.js +1 -1
  263. package/Models/DatabaseModels/ResourceAiAgent.js +38 -20
  264. package/Models/DatabaseModels/RumApplication.d.mts +3 -0
  265. package/Models/DatabaseModels/RumApplication.d.ts +3 -0
  266. package/Models/DatabaseModels/RumApplication.js +156 -0
  267. package/Models/DatabaseModels/Runbook.js +3 -1
  268. package/Models/DatabaseModels/RunbookExecution.js +6 -0
  269. package/Models/DatabaseModels/Runner.js +3 -0
  270. package/Models/DatabaseModels/ScheduledMaintenance.js +5 -0
  271. package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js +1 -1
  272. package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +2 -0
  273. package/Models/DatabaseModels/ScheduledMaintenanceReminderRule.js +1 -1
  274. package/Models/DatabaseModels/ScheduledMaintenanceState.js +1 -1
  275. package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +2 -0
  276. package/Models/DatabaseModels/ScheduledMaintenanceTemplate.d.mts +2 -0
  277. package/Models/DatabaseModels/ScheduledMaintenanceTemplate.d.ts +2 -0
  278. package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +56 -0
  279. package/Models/DatabaseModels/SecurityBlock.d.mts +28 -0
  280. package/Models/DatabaseModels/SecurityBlock.d.ts +28 -0
  281. package/Models/DatabaseModels/SecurityBlock.js +529 -0
  282. package/Models/DatabaseModels/SecurityBlock.mjs +2 -0
  283. package/Models/DatabaseModels/SecurityBlockEnforcement.d.mts +22 -0
  284. package/Models/DatabaseModels/SecurityBlockEnforcement.d.ts +22 -0
  285. package/Models/DatabaseModels/SecurityBlockEnforcement.js +368 -0
  286. package/Models/DatabaseModels/SecurityBlockEnforcement.mjs +2 -0
  287. package/Models/DatabaseModels/SecurityCase.js +29 -0
  288. package/Models/DatabaseModels/SecurityCasePriority.js +1 -1
  289. package/Models/DatabaseModels/SecurityCaseStatus.js +1 -1
  290. package/Models/DatabaseModels/SecurityDetection.d.mts +2 -1
  291. package/Models/DatabaseModels/SecurityDetection.d.ts +2 -1
  292. package/Models/DatabaseModels/SecurityDetection.js +32 -0
  293. package/Models/DatabaseModels/SecurityEventConnection.js +18 -0
  294. package/Models/DatabaseModels/SecurityPlaybookRun.js +15 -0
  295. package/Models/DatabaseModels/SecurityProtectedEntity.js +10 -8
  296. package/Models/DatabaseModels/ServerlessFunction.js +2 -0
  297. package/Models/DatabaseModels/Service.js +2 -0
  298. package/Models/DatabaseModels/ServiceAINote.d.mts +22 -0
  299. package/Models/DatabaseModels/ServiceAINote.d.ts +22 -0
  300. package/Models/DatabaseModels/ServiceAINote.js +331 -0
  301. package/Models/DatabaseModels/ServiceAINote.mjs +7 -0
  302. package/Models/DatabaseModels/ServiceLevelObjective.js +3 -0
  303. package/Models/DatabaseModels/ServiceOwnerTeam.d.mts +1 -0
  304. package/Models/DatabaseModels/ServiceOwnerTeam.d.ts +1 -0
  305. package/Models/DatabaseModels/ServiceOwnerTeam.js +40 -0
  306. package/Models/DatabaseModels/ServiceOwnerUser.d.mts +1 -0
  307. package/Models/DatabaseModels/ServiceOwnerUser.d.ts +1 -0
  308. package/Models/DatabaseModels/ServiceOwnerUser.js +40 -0
  309. package/Models/DatabaseModels/StatusPage.js +3 -0
  310. package/Models/DatabaseModels/StatusPageFooterLink.js +1 -1
  311. package/Models/DatabaseModels/StatusPageHeaderLink.js +1 -1
  312. package/Models/DatabaseModels/StatusPageHistoryChartBarColorRule.js +1 -1
  313. package/Models/DatabaseModels/StatusPageSCIM.js +3 -0
  314. package/Models/DatabaseModels/StatusPageSubscriber.js +4 -0
  315. package/Models/DatabaseModels/StorageArray.js +25 -0
  316. package/Models/DatabaseModels/StorageArrayResource.js +2 -1
  317. package/Models/DatabaseModels/Team.d.mts +1 -0
  318. package/Models/DatabaseModels/Team.d.ts +1 -0
  319. package/Models/DatabaseModels/Team.js +42 -0
  320. package/Models/DatabaseModels/TeamMember.d.mts +3 -0
  321. package/Models/DatabaseModels/TeamMember.d.ts +3 -0
  322. package/Models/DatabaseModels/TeamMember.js +94 -0
  323. package/Models/DatabaseModels/TeamPermission.js +5 -1
  324. package/Models/DatabaseModels/TelemetryDsym.d.mts +19 -0
  325. package/Models/DatabaseModels/TelemetryDsym.d.ts +19 -0
  326. package/Models/DatabaseModels/TelemetryDsym.js +545 -0
  327. package/Models/DatabaseModels/TelemetryDsym.mjs +2 -0
  328. package/Models/DatabaseModels/TelemetryException.js +24 -0
  329. package/Models/DatabaseModels/TelemetryIngestionKey.js +3 -0
  330. package/Models/DatabaseModels/TelemetryIngestionTeamLabelBudget.d.mts +22 -0
  331. package/Models/DatabaseModels/TelemetryIngestionTeamLabelBudget.d.ts +22 -0
  332. package/Models/DatabaseModels/TelemetryIngestionTeamLabelBudget.js +385 -0
  333. package/Models/DatabaseModels/TelemetryIngestionTeamLabelBudget.mjs +2 -0
  334. package/Models/DatabaseModels/TelemetrySourceMap.js +2 -0
  335. package/Models/DatabaseModels/TelemetryUsageBilling.js +7 -5
  336. package/Models/DatabaseModels/ThreatIntelFeed.js +31 -0
  337. package/Models/DatabaseModels/TraceDropFilter.js +1 -1
  338. package/Models/DatabaseModels/TracePipeline.js +1 -1
  339. package/Models/DatabaseModels/TracePipelineProcessor.js +1 -1
  340. package/Models/DatabaseModels/TraceScrubRule.js +1 -1
  341. package/Models/DatabaseModels/User.d.mts +1 -0
  342. package/Models/DatabaseModels/User.d.ts +1 -0
  343. package/Models/DatabaseModels/User.js +27 -0
  344. package/Models/DatabaseModels/UserProjectSsoConsent.js +6 -4
  345. package/Models/DatabaseModels/UserSession.js +12 -8
  346. package/Models/DatabaseModels/VMwareVCenter.js +16 -0
  347. package/Models/DatabaseModels/Workflow.d.mts +11 -0
  348. package/Models/DatabaseModels/Workflow.d.ts +11 -0
  349. package/Models/DatabaseModels/Workflow.js +318 -0
  350. package/Models/DatabaseModels/WorkflowLog.d.mts +7 -0
  351. package/Models/DatabaseModels/WorkflowLog.d.ts +7 -0
  352. package/Models/DatabaseModels/WorkflowLog.js +211 -0
  353. package/Models/DatabaseModels/WorkspaceNotificationSummary.js +3 -0
  354. package/Models/DatabaseModels/WorkspaceUserGroup.js +4 -0
  355. package/Server/Services/DatabaseService.d.mts +59 -1
  356. package/Server/Services/DatabaseService.d.ts +59 -1
  357. package/Server/Types/Database/CreateBy.d.mts +1 -0
  358. package/Server/Types/Database/CreateBy.d.ts +1 -0
  359. package/Server/Types/Database/DeleteById.d.mts +2 -0
  360. package/Server/Types/Database/DeleteById.d.ts +2 -0
  361. package/Server/Types/Database/DeleteOneBy.d.mts +2 -0
  362. package/Server/Types/Database/DeleteOneBy.d.ts +2 -0
  363. package/Server/Types/Database/UpdateByID.d.mts +2 -0
  364. package/Server/Types/Database/UpdateByID.d.ts +2 -0
  365. package/Server/Types/Database/UpdateOneBy.d.mts +2 -0
  366. package/Server/Types/Database/UpdateOneBy.d.ts +2 -0
  367. package/Server/Utils/Database/ListEntries.d.mts +45 -0
  368. package/Server/Utils/Database/ListEntries.d.ts +45 -0
  369. package/Server/Utils/Workspace/WorkspaceBase.d.mts +6 -0
  370. package/Server/Utils/Workspace/WorkspaceBase.d.ts +6 -0
  371. package/Types/AI/AIActionWords.d.mts +57 -0
  372. package/Types/AI/AIActionWords.d.ts +57 -0
  373. package/Types/AI/AIActionWords.js +175 -1
  374. package/Types/AI/AIActionWords.mjs +3 -0
  375. package/Types/AI/AIAgentRunLimits.d.mts +7 -0
  376. package/Types/AI/AIAgentRunLimits.d.ts +7 -0
  377. package/Types/AI/AIAgentRunLimits.js +39 -2
  378. package/Types/AI/AIAgentRunLimits.mjs +3 -0
  379. package/Types/AI/AIChatPageContext.d.mts +20 -1
  380. package/Types/AI/AIChatPageContext.d.ts +20 -1
  381. package/Types/AI/AIChatPageContext.js +83 -2
  382. package/Types/AI/AIChatTestPage.d.mts +11 -0
  383. package/Types/AI/AIChatTestPage.d.ts +11 -0
  384. package/Types/AI/AIChatTestPage.js +107 -0
  385. package/Types/AI/AIChatTestPage.mjs +6 -0
  386. package/Types/AI/AIChatTypes.d.mts +6 -0
  387. package/Types/AI/AIChatTypes.d.ts +6 -0
  388. package/Types/AI/AIReadTableWords.d.mts +6 -0
  389. package/Types/AI/AIReadTableWords.d.ts +6 -0
  390. package/Types/AI/AIReadTableWords.js +13 -0
  391. package/Types/AI/AIRunAttempt.d.mts +2 -0
  392. package/Types/AI/AIRunAttempt.d.ts +2 -0
  393. package/Types/AI/AIRunAttempt.js +14 -1
  394. package/Types/AI/AIRunAttempt.mjs +1 -0
  395. package/Types/AI/AISetupActions.d.mts +18 -0
  396. package/Types/AI/AISetupActions.d.ts +18 -0
  397. package/Types/AI/AISetupActions.js +85 -2
  398. package/Types/AI/AISetupActions.mjs +8 -0
  399. package/Types/AI/AiActivityInsights.d.mts +11 -0
  400. package/Types/AI/AiActivityInsights.d.ts +11 -0
  401. package/Types/AI/AiActivityInsights.js +7 -2
  402. package/Types/AI/AiActivityInsights.mjs +1 -0
  403. package/Types/AI/AiOutcomes.d.mts +61 -0
  404. package/Types/AI/AiOutcomes.d.ts +61 -0
  405. package/Types/AI/AiOutcomes.js +71 -2
  406. package/Types/AI/AiOutcomes.mjs +12 -0
  407. package/Types/AI/AskAiAnswers.d.mts +23 -0
  408. package/Types/AI/AskAiAnswers.d.ts +23 -0
  409. package/Types/AI/AskAiAnswers.js +150 -0
  410. package/Types/AI/AskAiAnswers.mjs +9 -0
  411. package/Types/AI/AskAiDocsTools.d.mts +4 -0
  412. package/Types/AI/AskAiDocsTools.d.ts +4 -0
  413. package/Types/AI/AskAiDocsTools.js +25 -0
  414. package/Types/AI/AskAiDocsTools.mjs +5 -0
  415. package/Types/AI/AskAiRatings.js +2 -5
  416. package/Types/AI/AskAiRecordPages.d.mts +33 -0
  417. package/Types/AI/AskAiRecordPages.d.ts +33 -0
  418. package/Types/AI/AskAiRecordPages.js +58 -0
  419. package/Types/AI/AskAiRecordPages.mjs +5 -0
  420. package/Types/AI/CodeAgentRunLimits.d.mts +1 -0
  421. package/Types/AI/CodeAgentRunLimits.d.ts +1 -0
  422. package/Types/AI/CodeAgentRunLimits.js +6 -1
  423. package/Types/AI/CodeFixTaskType.d.mts +3 -0
  424. package/Types/AI/CodeFixTaskType.d.ts +3 -0
  425. package/Types/AI/CodeFixTaskType.js +43 -0
  426. package/Types/AI/CodeTask.d.mts +8 -0
  427. package/Types/AI/CodeTask.d.ts +8 -0
  428. package/Types/AI/CodeTask.js +3 -1
  429. package/Types/AI/CodeTask.mjs +1 -0
  430. package/Types/AI/CodeTaskTryAgain.d.mts +9 -0
  431. package/Types/AI/CodeTaskTryAgain.d.ts +9 -0
  432. package/Types/AI/CodeTaskTryAgain.js +56 -0
  433. package/Types/AI/CodeTaskTryAgain.mjs +10 -0
  434. package/Types/AI/ExternalMcpServer/ExternalMcpToolNames.d.mts +10 -0
  435. package/Types/AI/ExternalMcpServer/ExternalMcpToolNames.d.ts +10 -0
  436. package/Types/AI/ExternalMcpServer/ExternalMcpToolNames.js +33 -0
  437. package/Types/AI/ExternalMcpServer/ExternalMcpToolNames.mjs +2 -0
  438. package/Types/AI/InvestigationRecording.d.mts +1 -0
  439. package/Types/AI/InvestigationRecording.d.ts +1 -0
  440. package/Types/AI/ProjectAiRunLimits.d.mts +4 -1
  441. package/Types/AI/ProjectAiRunLimits.d.ts +4 -1
  442. package/Types/AI/ProjectAiRunLimits.js +26 -5
  443. package/Types/AI/ProjectAiRunLimits.mjs +2 -0
  444. package/Types/AI/ServiceKnowledgeSummary.d.mts +27 -0
  445. package/Types/AI/ServiceKnowledgeSummary.d.ts +27 -0
  446. package/Types/AI/ServiceKnowledgeSummary.js +68 -0
  447. package/Types/AI/ServiceKnowledgeSummary.mjs +4 -0
  448. package/Types/API/FieldsLeftOut.d.mts +8 -0
  449. package/Types/API/FieldsLeftOut.d.ts +8 -0
  450. package/Types/API/FieldsLeftOut.js +98 -0
  451. package/Types/API/FieldsLeftOut.mjs +3 -0
  452. package/Types/API/Route.js +18 -6
  453. package/Types/Accounts/EmailAddressChangedEmail.d.mts +35 -0
  454. package/Types/Accounts/EmailAddressChangedEmail.d.ts +35 -0
  455. package/Types/Accounts/EmailAddressChangedEmail.js +201 -0
  456. package/Types/Accounts/EmailAddressChangedEmail.mjs +10 -0
  457. package/Types/Accounts/InvitationSsoSignIn.d.mts +8 -0
  458. package/Types/Accounts/InvitationSsoSignIn.d.ts +8 -0
  459. package/Types/Accounts/InvitationSsoSignIn.js +55 -0
  460. package/Types/Accounts/InvitationSsoSignIn.mjs +5 -0
  461. package/Types/Accounts/Reauthentication.d.mts +99 -0
  462. package/Types/Accounts/Reauthentication.d.ts +99 -0
  463. package/Types/Accounts/Reauthentication.js +341 -0
  464. package/Types/Accounts/Reauthentication.mjs +21 -0
  465. package/Types/Accounts/RememberedSsoProvider.d.mts +17 -0
  466. package/Types/Accounts/RememberedSsoProvider.d.ts +17 -0
  467. package/Types/Accounts/RememberedSsoProvider.js +114 -0
  468. package/Types/Accounts/RememberedSsoProvider.mjs +3 -0
  469. package/Types/Accounts/SecondStepEnrolment.d.mts +16 -0
  470. package/Types/Accounts/SecondStepEnrolment.d.ts +16 -0
  471. package/Types/Accounts/SecondStepEnrolment.js +96 -0
  472. package/Types/Accounts/SecondStepEnrolment.mjs +14 -0
  473. package/Types/Accounts/SecurityKeySignIn.d.mts +1 -0
  474. package/Types/Accounts/SecurityKeySignIn.d.ts +1 -0
  475. package/Types/Accounts/SecurityKeySignIn.js +33 -0
  476. package/Types/Accounts/SecurityKeySignIn.mjs +2 -0
  477. package/Types/Accounts/SignInMessages.d.mts +1 -0
  478. package/Types/Accounts/SignInMessages.d.ts +1 -0
  479. package/Types/Accounts/SignInMessages.js +14 -2
  480. package/Types/Accounts/SignInMessages.mjs +1 -0
  481. package/Types/Accounts/SignUpInvitation.d.mts +6 -0
  482. package/Types/Accounts/SignUpInvitation.d.ts +6 -0
  483. package/Types/Accounts/SignUpInvitation.js +40 -1
  484. package/Types/Accounts/SignUpInvitation.mjs +1 -0
  485. package/Types/Accounts/SsoSignInLinks.d.mts +20 -0
  486. package/Types/Accounts/SsoSignInLinks.d.ts +20 -0
  487. package/Types/Accounts/SsoSignInLinks.js +97 -0
  488. package/Types/Accounts/SsoSignInLinks.mjs +6 -0
  489. package/Types/Analytics/ProductEvent.d.mts +3 -0
  490. package/Types/Analytics/ProductEvent.d.ts +3 -0
  491. package/Types/Analytics/ProductEvent.js +37 -4
  492. package/Types/AnalyticsDatabase/AnalyticsTableName.d.mts +1 -0
  493. package/Types/AnalyticsDatabase/AnalyticsTableName.d.ts +1 -0
  494. package/Types/AnalyticsDatabase/AnalyticsTableName.js +8 -0
  495. package/Types/AuditLog/AuditLogCoverage.d.mts +1 -0
  496. package/Types/AuditLog/AuditLogCoverage.d.ts +1 -0
  497. package/Types/AuditLog/AuditLogCoverage.js +16 -2
  498. package/Types/AuditLog/AuditLogCoverage.mjs +1 -0
  499. package/Types/AuditLog/AuditLogSessionEvent.js +2 -0
  500. package/Types/AuditLog/AuditLogSignInSettingsCleared.d.mts +17 -0
  501. package/Types/AuditLog/AuditLogSignInSettingsCleared.d.ts +17 -0
  502. package/Types/AuditLog/AuditLogSignInSettingsCleared.js +87 -0
  503. package/Types/AuditLog/AuditLogSignInSettingsCleared.mjs +4 -0
  504. package/Types/AuditLog/Export/AuditLogExportRecord.d.mts +9 -1
  505. package/Types/AuditLog/Export/AuditLogExportRecord.d.ts +9 -1
  506. package/Types/AuditLog/Export/AuditLogExportRecord.js +55 -9
  507. package/Types/AuditLog/Export/AuditLogExportRecord.mjs +3 -0
  508. package/Types/AutoRemediation/RemediationRound.d.mts +10 -1
  509. package/Types/AutoRemediation/RemediationRound.d.ts +10 -1
  510. package/Types/AutoRemediation/RemediationRound.js +37 -6
  511. package/Types/AutoRemediation/RemediationRound.mjs +3 -0
  512. package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.mts +4 -0
  513. package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.ts +4 -0
  514. package/Types/Billing/PayAsYouGoPricing.d.mts +5 -0
  515. package/Types/Billing/PayAsYouGoPricing.d.ts +5 -0
  516. package/Types/Billing/PayAsYouGoPricing.js +24 -6
  517. package/Types/Billing/PayAsYouGoPricing.mjs +1 -0
  518. package/Types/Call/CallStatus.d.mts +2 -1
  519. package/Types/Call/CallStatus.d.ts +2 -1
  520. package/Types/Call/CallStatus.js +6 -0
  521. package/Types/Cloud/AppServiceSiteActivity.d.mts +55 -0
  522. package/Types/Cloud/AppServiceSiteActivity.d.ts +55 -0
  523. package/Types/Cloud/AppServiceSiteActivity.js +321 -0
  524. package/Types/Cloud/AppServiceSiteActivity.mjs +16 -0
  525. package/Types/Cloud/AwsDocumentedMetricUnits.d.mts +6 -0
  526. package/Types/Cloud/AwsDocumentedMetricUnits.d.ts +6 -0
  527. package/Types/Cloud/AwsDocumentedMetricUnits.js +1603 -0
  528. package/Types/Cloud/AwsDocumentedMetricUnits.mjs +3 -0
  529. package/Types/Cloud/AwsMetricUnits.d.mts +1 -0
  530. package/Types/Cloud/AwsMetricUnits.d.ts +1 -0
  531. package/Types/Cloud/AwsMetricUnits.js +38 -0
  532. package/Types/Cloud/AwsMetricUnits.mjs +2 -0
  533. package/Types/Cloud/AwsRoleArn.d.mts +2 -0
  534. package/Types/Cloud/AwsRoleArn.d.ts +2 -0
  535. package/Types/Cloud/AwsRoleArn.js +58 -0
  536. package/Types/Cloud/AwsRoleArn.mjs +3 -0
  537. package/Types/Cloud/CloudAddedMetricReaders.d.mts +43 -0
  538. package/Types/Cloud/CloudAddedMetricReaders.d.ts +43 -0
  539. package/Types/Cloud/CloudAddedMetricReaders.js +202 -0
  540. package/Types/Cloud/CloudAddedMetricReaders.mjs +5 -0
  541. package/Types/Cloud/CloudAddedMetrics.d.mts +82 -0
  542. package/Types/Cloud/CloudAddedMetrics.d.ts +82 -0
  543. package/Types/Cloud/CloudAddedMetrics.js +603 -0
  544. package/Types/Cloud/CloudAddedMetrics.mjs +25 -0
  545. package/Types/Cloud/CloudCost.d.mts +4 -1
  546. package/Types/Cloud/CloudCost.d.ts +4 -1
  547. package/Types/Cloud/CloudCost.js +15 -1
  548. package/Types/Cloud/CloudKeyMetricCondition.d.mts +10 -0
  549. package/Types/Cloud/CloudKeyMetricCondition.d.ts +10 -0
  550. package/Types/Cloud/CloudKeyMetricCondition.js +65 -0
  551. package/Types/Cloud/CloudKeyMetricCondition.mjs +4 -0
  552. package/Types/Cloud/CloudKeyMetrics.d.mts +68 -4
  553. package/Types/Cloud/CloudKeyMetrics.d.ts +68 -4
  554. package/Types/Cloud/CloudKeyMetrics.js +891 -213
  555. package/Types/Cloud/CloudKeyMetrics.mjs +24 -0
  556. package/Types/Cloud/CloudLogGroups.js +4 -4
  557. package/Types/Cloud/CloudMonitoredResource.js +16 -2
  558. package/Types/Cloud/CloudPublishedMetrics.d.mts +51 -0
  559. package/Types/Cloud/CloudPublishedMetrics.d.ts +51 -0
  560. package/Types/Cloud/CloudPublishedMetrics.js +215 -0
  561. package/Types/Cloud/CloudPublishedMetrics.mjs +7 -0
  562. package/Types/Cloud/CloudReadingKeys.d.mts +10 -0
  563. package/Types/Cloud/CloudReadingKeys.d.ts +10 -0
  564. package/Types/Cloud/CloudReadingKeys.js +37 -0
  565. package/Types/Cloud/CloudReadingKeys.mjs +3 -0
  566. package/Types/Cloud/CloudResourceCatalog.d.mts +1 -0
  567. package/Types/Cloud/CloudResourceCatalog.d.ts +1 -0
  568. package/Types/Cloud/CloudResourceCatalog.js +33 -2
  569. package/Types/Cloud/CloudResourceHealth.d.mts +95 -1
  570. package/Types/Cloud/CloudResourceHealth.d.ts +95 -1
  571. package/Types/Cloud/CloudResourceHealth.js +703 -33
  572. package/Types/Cloud/CloudResourceHealth.mjs +43 -0
  573. package/Types/Cloud/CloudResourceMetricCollection.d.mts +41 -0
  574. package/Types/Cloud/CloudResourceMetricCollection.d.ts +41 -0
  575. package/Types/Cloud/CloudResourceMetricCollection.js +167 -0
  576. package/Types/Cloud/CloudResourceMetricCollection.mjs +9 -0
  577. package/Types/Cloud/CloudRightSizing.js +9 -3
  578. package/Types/Cloud/CloudUnreportedKeyMetrics.d.mts +118 -0
  579. package/Types/Cloud/CloudUnreportedKeyMetrics.d.ts +118 -0
  580. package/Types/Cloud/CloudUnreportedKeyMetrics.js +637 -0
  581. package/Types/Cloud/CloudUnreportedKeyMetrics.mjs +20 -0
  582. package/Types/CloudConnection/AwsRoleExternalIdRefusal.d.mts +9 -0
  583. package/Types/CloudConnection/AwsRoleExternalIdRefusal.d.ts +9 -0
  584. package/Types/CloudConnection/AwsRoleExternalIdRefusal.js +70 -0
  585. package/Types/CloudConnection/AwsRoleExternalIdRefusal.mjs +6 -0
  586. package/Types/CloudConnection/AwsRoleSignInFailures.d.mts +15 -0
  587. package/Types/CloudConnection/AwsRoleSignInFailures.d.ts +15 -0
  588. package/Types/CloudConnection/AwsRoleSignInFailures.js +27 -0
  589. package/Types/CloudConnection/AwsRoleSignInFailures.mjs +3 -0
  590. package/Types/CloudConnection/CloudConnectionCatalog.d.mts +1 -0
  591. package/Types/CloudConnection/CloudConnectionCatalog.d.ts +1 -0
  592. package/Types/CloudConnection/CloudConnectionCatalog.js +6 -3
  593. package/Types/CloudConnection/CloudConnectionCost.d.mts +23 -0
  594. package/Types/CloudConnection/CloudConnectionCost.d.ts +23 -0
  595. package/Types/CloudConnection/CloudConnectionCost.js +111 -4
  596. package/Types/CloudConnection/CloudConnectionCost.mjs +4 -0
  597. package/Types/CloudConnection/CloudConnectionPaste.d.mts +2 -1
  598. package/Types/CloudConnection/CloudConnectionPaste.d.ts +2 -1
  599. package/Types/CloudConnection/CloudConnectionPaste.js +4 -42
  600. package/Types/CloudConnection/CloudConnectionSetupCommands.d.mts +23 -0
  601. package/Types/CloudConnection/CloudConnectionSetupCommands.d.ts +23 -0
  602. package/Types/CloudConnection/CloudConnectionSetupCommands.js +110 -8
  603. package/Types/CloudConnection/CloudConnectionSetupCommands.mjs +7 -0
  604. package/Types/CloudConnection/CloudStream.d.mts +5 -0
  605. package/Types/CloudConnection/CloudStream.d.ts +5 -0
  606. package/Types/CloudConnection/CloudStream.js +46 -2
  607. package/Types/CloudConnection/CloudStream.mjs +3 -0
  608. package/Types/CloudConnection/CloudStreamAzure.d.mts +16 -0
  609. package/Types/CloudConnection/CloudStreamAzure.d.ts +16 -0
  610. package/Types/CloudConnection/CloudStreamAzure.js +245 -41
  611. package/Types/CloudConnection/CloudStreamAzure.mjs +12 -0
  612. package/Types/CloudConnection/CloudStreamOrganization.d.mts +6 -0
  613. package/Types/CloudConnection/CloudStreamOrganization.d.ts +6 -0
  614. package/Types/CloudConnection/CloudStreamOrganization.js +36 -1
  615. package/Types/CloudConnection/CloudStreamOrganization.mjs +2 -0
  616. package/Types/CloudConnection/CloudStreamStack.d.mts +48 -0
  617. package/Types/CloudConnection/CloudStreamStack.d.ts +48 -0
  618. package/Types/CloudConnection/CloudStreamStack.js +198 -0
  619. package/Types/CloudConnection/CloudStreamStack.mjs +15 -0
  620. package/Types/CloudConnection/CloudStreamTemplate.d.mts +14 -1
  621. package/Types/CloudConnection/CloudStreamTemplate.d.ts +14 -1
  622. package/Types/CloudConnection/CloudStreamTemplate.js +147 -16
  623. package/Types/CloudConnection/CloudStreamTemplate.mjs +10 -0
  624. package/Types/CookieName.d.mts +7 -1
  625. package/Types/CookieName.d.ts +7 -1
  626. package/Types/CookieName.js +18 -0
  627. package/Types/Dashboard/DashboardAccess.d.mts +6 -1
  628. package/Types/Dashboard/DashboardAccess.d.ts +6 -1
  629. package/Types/Dashboard/DashboardAccess.js +79 -19
  630. package/Types/Dashboard/DashboardAccess.mjs +2 -0
  631. package/Types/Dashboard/DashboardComponents/DashboardDataSourceChartComponent.d.mts +1 -0
  632. package/Types/Dashboard/DashboardComponents/DashboardDataSourceChartComponent.d.ts +1 -0
  633. package/Types/Dashboard/DashboardPrivateUserSignIn.d.mts +27 -0
  634. package/Types/Dashboard/DashboardPrivateUserSignIn.d.ts +27 -0
  635. package/Types/Dashboard/DashboardPrivateUserSignIn.js +56 -0
  636. package/Types/Dashboard/DashboardPrivateUserSignIn.mjs +10 -0
  637. package/Types/Dashboard/PublicDashboardPromQL.d.mts +1 -0
  638. package/Types/Dashboard/PublicDashboardPromQL.d.ts +1 -0
  639. package/Types/Dashboard/PublicDashboardPromQL.js +13 -0
  640. package/Types/Dashboard/PublicDashboardPromQL.mjs +2 -0
  641. package/Types/Dashboard/PublicDashboardServedSettings.d.mts +3 -1
  642. package/Types/Dashboard/PublicDashboardServedSettings.d.ts +3 -1
  643. package/Types/Dashboard/PublicDashboardServedSettings.js +98 -10
  644. package/Types/DataObservability/DataBiLineage.d.mts +5 -0
  645. package/Types/DataObservability/DataBiLineage.d.ts +5 -0
  646. package/Types/DataObservability/DataBiLineage.js +29 -1
  647. package/Types/DataObservability/DataCircuitBreaker.d.mts +78 -0
  648. package/Types/DataObservability/DataCircuitBreaker.d.ts +78 -0
  649. package/Types/DataObservability/DataCircuitBreaker.js +262 -0
  650. package/Types/DataObservability/DataCircuitBreaker.mjs +12 -0
  651. package/Types/DataObservability/DataLineageMap.d.mts +3 -0
  652. package/Types/DataObservability/DataLineageMap.d.ts +3 -0
  653. package/Types/DataObservability/DataLineageMap.js +22 -0
  654. package/Types/DataObservability/DataLineageMap.mjs +2 -0
  655. package/Types/DataObservability/DataObservabilityApiTypes.d.mts +18 -0
  656. package/Types/DataObservability/DataObservabilityApiTypes.d.ts +18 -0
  657. package/Types/DataObservability/DataObservabilityApiTypes.js +10 -0
  658. package/Types/DataObservability/DataObservabilityAttention.d.mts +1 -0
  659. package/Types/DataObservability/DataObservabilityAttention.d.ts +1 -0
  660. package/Types/DataObservability/DataObservabilityAttention.js +12 -6
  661. package/Types/DataObservability/DataPipelineMetric.d.mts +2 -1
  662. package/Types/DataObservability/DataPipelineMetric.d.ts +2 -1
  663. package/Types/DataObservability/DataPipelineMetric.js +12 -2
  664. package/Types/DataObservability/SkippedTables.d.mts +24 -0
  665. package/Types/DataObservability/SkippedTables.d.ts +24 -0
  666. package/Types/DataObservability/SkippedTables.js +147 -0
  667. package/Types/DataObservability/SkippedTables.mjs +9 -0
  668. package/Types/DataSecurity/ComplianceRequirementCatalog.d.mts +9 -2
  669. package/Types/DataSecurity/ComplianceRequirementCatalog.d.ts +9 -2
  670. package/Types/DataSecurity/ComplianceRequirementCatalog.js +46 -10
  671. package/Types/DataSecurity/ComplianceRequirementCatalog.mjs +1 -0
  672. package/Types/DataSecurity/ComplianceScope.d.mts +29 -0
  673. package/Types/DataSecurity/ComplianceScope.d.ts +29 -0
  674. package/Types/DataSecurity/ComplianceScope.js +120 -0
  675. package/Types/DataSecurity/ComplianceScope.mjs +7 -0
  676. package/Types/DataSecurity/ComplianceSettingFramework.d.mts +5 -0
  677. package/Types/DataSecurity/ComplianceSettingFramework.d.ts +5 -0
  678. package/Types/DataSecurity/ComplianceSettingFramework.js +10 -0
  679. package/Types/DataSecurity/ComplianceSettingFramework.mjs +3 -0
  680. package/Types/DataSecurity/CustomDataTypeId.d.mts +3 -0
  681. package/Types/DataSecurity/CustomDataTypeId.d.ts +3 -0
  682. package/Types/DataSecurity/CustomDataTypeId.js +22 -0
  683. package/Types/DataSecurity/CustomDataTypeId.mjs +4 -0
  684. package/Types/DataSecurity/DataSecurityAiFeatures.d.mts +27 -0
  685. package/Types/DataSecurity/DataSecurityAiFeatures.d.ts +27 -0
  686. package/Types/DataSecurity/DataSecurityAiFeatures.js +153 -0
  687. package/Types/DataSecurity/DataSecurityAiFeatures.mjs +8 -0
  688. package/Types/DataSecurity/DataSecurityApiTypes.d.mts +129 -2
  689. package/Types/DataSecurity/DataSecurityApiTypes.d.ts +129 -2
  690. package/Types/DataSecurity/DataSecurityApiTypes.js +60 -1
  691. package/Types/DataSecurity/DataSecurityApiTypes.mjs +4 -0
  692. package/Types/DataSecurity/DataSecurityCheckCatalog.js +7 -10
  693. package/Types/DataSecurity/DataStoreKind.d.mts +2 -1
  694. package/Types/DataSecurity/DataStoreKind.d.ts +2 -1
  695. package/Types/DataSecurity/DataStoreKind.js +8 -1
  696. package/Types/DataSecurity/DataStoreResource.d.mts +32 -0
  697. package/Types/DataSecurity/DataStoreResource.d.ts +32 -0
  698. package/Types/DataSecurity/DataStoreResource.js +142 -0
  699. package/Types/DataSecurity/DataStoreResource.mjs +11 -0
  700. package/Types/DataSecurity/DataTypeNamer.d.mts +15 -0
  701. package/Types/DataSecurity/DataTypeNamer.d.ts +15 -0
  702. package/Types/DataSecurity/DataTypeNamer.js +148 -0
  703. package/Types/DataSecurity/DataTypeNamer.mjs +4 -0
  704. package/Types/DataSecurity/FindingSampleRecord.d.mts +5 -0
  705. package/Types/DataSecurity/FindingSampleRecord.d.ts +5 -0
  706. package/Types/DataSecurity/FindingSampleRecord.js +62 -11
  707. package/Types/DataSecurity/FindingSampleRecord.mjs +1 -0
  708. package/Types/DataSecurity/TelemetryScrubTarget.d.mts +28 -0
  709. package/Types/DataSecurity/TelemetryScrubTarget.d.ts +28 -0
  710. package/Types/DataSecurity/TelemetryScrubTarget.js +125 -0
  711. package/Types/DataSecurity/TelemetryScrubTarget.mjs +12 -0
  712. package/Types/DataSource/ProjectMetricsDataSource.d.mts +4 -0
  713. package/Types/DataSource/ProjectMetricsDataSource.d.ts +4 -0
  714. package/Types/DataSource/ProjectMetricsDataSource.js +27 -0
  715. package/Types/DataSource/ProjectMetricsDataSource.mjs +3 -0
  716. package/Types/Database/AccessControl/AccountDateColumns.d.mts +3 -0
  717. package/Types/Database/AccessControl/AccountDateColumns.d.ts +3 -0
  718. package/Types/Database/AccessControl/AccountDateColumns.js +32 -0
  719. package/Types/Database/AccessControl/AccountDateColumns.mjs +4 -0
  720. package/Types/Database/AccessControl/ColumnAccessControl.js +36 -2
  721. package/Types/Database/AccessControl/PermissionScopeNarrowing.js +118 -4
  722. package/Types/Database/AccessControl/TableAccessControl.js +39 -11
  723. package/Types/Database/ListChanges.d.mts +21 -0
  724. package/Types/Database/ListChanges.d.ts +21 -0
  725. package/Types/Database/ListChanges.js +198 -0
  726. package/Types/Database/ListChanges.mjs +4 -0
  727. package/Types/Database/MoveInList.d.mts +11 -2
  728. package/Types/Database/MoveInList.d.ts +11 -2
  729. package/Types/Database/MoveInList.js +74 -23
  730. package/Types/Database/MoveInList.mjs +2 -0
  731. package/Types/Database/RelationReaders.d.mts +5 -0
  732. package/Types/Database/RelationReaders.d.ts +5 -0
  733. package/Types/Database/RelationReaders.js +44 -0
  734. package/Types/Database/RelationReaders.mjs +2 -0
  735. package/Types/Database/RelationReadersUtil.d.mts +29 -0
  736. package/Types/Database/RelationReadersUtil.d.ts +29 -0
  737. package/Types/Database/RelationReadersUtil.js +178 -0
  738. package/Types/Database/RelationReadersUtil.mjs +2 -0
  739. package/Types/Database/ServerOwned.d.mts +6 -0
  740. package/Types/Database/ServerOwned.d.ts +6 -0
  741. package/Types/Database/ServerOwned.js +76 -0
  742. package/Types/Database/ServerOwned.mjs +2 -0
  743. package/Types/Database/SharedNameMarks.d.mts +39 -0
  744. package/Types/Database/SharedNameMarks.d.ts +39 -0
  745. package/Types/Database/SharedNameMarks.js +208 -0
  746. package/Types/Database/SharedNameMarks.mjs +11 -0
  747. package/Types/Database/SharedNames.d.mts +16 -0
  748. package/Types/Database/SharedNames.d.ts +16 -0
  749. package/Types/Database/SharedNames.js +82 -0
  750. package/Types/Database/SharedNames.mjs +8 -0
  751. package/Types/Database/TableColumn.d.mts +5 -0
  752. package/Types/Database/TableColumn.d.ts +5 -0
  753. package/Types/Database/UniqueName.d.mts +41 -0
  754. package/Types/Database/UniqueName.d.ts +41 -0
  755. package/Types/Database/UniqueName.js +242 -0
  756. package/Types/Database/UniqueName.mjs +25 -0
  757. package/Types/Date.d.mts +41 -1
  758. package/Types/Date.d.ts +41 -1
  759. package/Types/Date.js +377 -155
  760. package/Types/DateLanguage.d.mts +18 -2
  761. package/Types/DateLanguage.d.ts +18 -2
  762. package/Types/DateLanguage.js +311 -49
  763. package/Types/DateLanguage.mjs +6 -1
  764. package/Types/DeviceManagement/DeviceManagementConnectionHealth.d.mts +25 -0
  765. package/Types/DeviceManagement/DeviceManagementConnectionHealth.d.ts +25 -0
  766. package/Types/DeviceManagement/DeviceManagementConnectionHealth.js +98 -0
  767. package/Types/DeviceManagement/DeviceManagementConnectionHealth.mjs +5 -0
  768. package/Types/DeviceManagement/DeviceManagementConnectionReading.d.mts +50 -0
  769. package/Types/DeviceManagement/DeviceManagementConnectionReading.d.ts +50 -0
  770. package/Types/DeviceManagement/DeviceManagementConnectionReading.js +192 -0
  771. package/Types/DeviceManagement/DeviceManagementConnectionReading.mjs +12 -0
  772. package/Types/DeviceManagement/DeviceManagementConnectionSettings.d.mts +99 -0
  773. package/Types/DeviceManagement/DeviceManagementConnectionSettings.d.ts +99 -0
  774. package/Types/DeviceManagement/DeviceManagementConnectionSettings.js +1053 -0
  775. package/Types/DeviceManagement/DeviceManagementConnectionSettings.mjs +73 -0
  776. package/Types/DeviceManagement/DeviceManagementConnectionTest.d.mts +14 -0
  777. package/Types/DeviceManagement/DeviceManagementConnectionTest.d.ts +14 -0
  778. package/Types/DeviceManagement/DeviceManagementConnectionTest.js +5 -0
  779. package/Types/DeviceManagement/DeviceManagementConnectionTest.mjs +2 -0
  780. package/Types/DeviceManagement/DeviceManagementProvider.d.mts +12 -0
  781. package/Types/DeviceManagement/DeviceManagementProvider.d.ts +12 -0
  782. package/Types/DeviceManagement/DeviceManagementProvider.js +80 -0
  783. package/Types/DeviceManagement/DeviceManagementProvider.mjs +7 -0
  784. package/Types/DeviceManagement/DeviceManagementReadSummary.d.mts +28 -0
  785. package/Types/DeviceManagement/DeviceManagementReadSummary.d.ts +28 -0
  786. package/Types/DeviceManagement/DeviceManagementReadSummary.js +67 -0
  787. package/Types/DeviceManagement/DeviceManagementReadSummary.mjs +4 -0
  788. package/Types/DeviceManagement/ManagedDeviceAlertScope.d.mts +19 -0
  789. package/Types/DeviceManagement/ManagedDeviceAlertScope.d.ts +19 -0
  790. package/Types/DeviceManagement/ManagedDeviceAlertScope.js +150 -0
  791. package/Types/DeviceManagement/ManagedDeviceAlertScope.mjs +6 -0
  792. package/Types/DeviceManagement/ManagedDeviceCheckIn.d.mts +106 -0
  793. package/Types/DeviceManagement/ManagedDeviceCheckIn.d.ts +106 -0
  794. package/Types/DeviceManagement/ManagedDeviceCheckIn.js +490 -0
  795. package/Types/DeviceManagement/ManagedDeviceCheckIn.mjs +32 -0
  796. package/Types/DeviceManagement/ManagedDeviceIdentity.d.mts +46 -0
  797. package/Types/DeviceManagement/ManagedDeviceIdentity.d.ts +46 -0
  798. package/Types/DeviceManagement/ManagedDeviceIdentity.js +268 -0
  799. package/Types/DeviceManagement/ManagedDeviceIdentity.mjs +24 -0
  800. package/Types/DeviceManagement/ManagedDevicePlatform.d.mts +20 -0
  801. package/Types/DeviceManagement/ManagedDevicePlatform.d.ts +20 -0
  802. package/Types/DeviceManagement/ManagedDevicePlatform.js +143 -0
  803. package/Types/DeviceManagement/ManagedDevicePlatform.mjs +9 -0
  804. package/Types/DeviceManagement/ManagedDeviceStatus.d.mts +62 -0
  805. package/Types/DeviceManagement/ManagedDeviceStatus.d.ts +62 -0
  806. package/Types/DeviceManagement/ManagedDeviceStatus.js +226 -0
  807. package/Types/DeviceManagement/ManagedDeviceStatus.mjs +13 -0
  808. package/Types/DockerSwarm/DockerSwarmInventoryExtractor.js +20 -1
  809. package/Types/Domain.d.mts +1 -0
  810. package/Types/Domain.d.ts +1 -0
  811. package/Types/Domain.js +30 -0
  812. package/Types/Email/AmazonSesRoleExternalId.d.mts +5 -0
  813. package/Types/Email/AmazonSesRoleExternalId.d.ts +5 -0
  814. package/Types/Email/AmazonSesRoleExternalId.js +50 -0
  815. package/Types/Email/AmazonSesRoleExternalId.mjs +3 -0
  816. package/Types/Email/AmazonSesRoleSetup.d.mts +8 -0
  817. package/Types/Email/AmazonSesRoleSetup.d.ts +8 -0
  818. package/Types/Email/AmazonSesRoleSetup.js +60 -0
  819. package/Types/Email/AmazonSesRoleSetup.mjs +3 -0
  820. package/Types/Email/AmazonSesRoleWords.d.mts +11 -0
  821. package/Types/Email/AmazonSesRoleWords.d.ts +11 -0
  822. package/Types/Email/AmazonSesRoleWords.js +75 -0
  823. package/Types/Email/AmazonSesRoleWords.mjs +11 -0
  824. package/Types/Email/EmailMessage.d.mts +1 -0
  825. package/Types/Email/EmailMessage.d.ts +1 -0
  826. package/Types/Email/EmailServer.d.mts +2 -0
  827. package/Types/Email/EmailServer.d.ts +2 -0
  828. package/Types/Email/EmailTemplateType.d.mts +15 -0
  829. package/Types/Email/EmailTemplateType.d.ts +15 -0
  830. package/Types/Email/EmailTemplateType.js +60 -0
  831. package/Types/Email/ProjectAmazonSesAuthenticationType.d.mts +28 -0
  832. package/Types/Email/ProjectAmazonSesAuthenticationType.d.ts +28 -0
  833. package/Types/Email/ProjectAmazonSesAuthenticationType.js +47 -0
  834. package/Types/Email/ProjectAmazonSesAuthenticationType.mjs +4 -0
  835. package/Types/Email/ServerAwsIdentity.d.mts +19 -0
  836. package/Types/Email/ServerAwsIdentity.d.ts +19 -0
  837. package/Types/Email/ServerAwsIdentity.js +75 -0
  838. package/Types/Email/ServerAwsIdentity.mjs +4 -0
  839. package/Types/Events/Recurring.d.mts +52 -8
  840. package/Types/Events/Recurring.d.ts +52 -8
  841. package/Types/Events/Recurring.js +117 -58
  842. package/Types/Exception/BadDataExceptionWithDetails.d.mts +1 -0
  843. package/Types/Exception/BadDataExceptionWithDetails.d.ts +1 -0
  844. package/Types/Exception/BadDataExceptionWithDetails.js +18 -5
  845. package/Types/Exception/BadDataExceptionWithDetails.mjs +1 -0
  846. package/Types/Exception/NameTakenException.d.mts +13 -0
  847. package/Types/Exception/NameTakenException.d.ts +13 -0
  848. package/Types/Exception/NameTakenException.js +81 -0
  849. package/Types/Exception/NameTakenException.mjs +7 -0
  850. package/Types/Exception/ReauthenticationRequiredException.d.mts +7 -0
  851. package/Types/Exception/ReauthenticationRequiredException.d.ts +7 -0
  852. package/Types/Exception/ReauthenticationRequiredException.js +60 -0
  853. package/Types/Exception/ReauthenticationRequiredException.mjs +2 -0
  854. package/Types/Exception/ValueTakenException.d.mts +15 -0
  855. package/Types/Exception/ValueTakenException.d.ts +15 -0
  856. package/Types/Exception/ValueTakenException.js +79 -0
  857. package/Types/Exception/ValueTakenException.mjs +7 -0
  858. package/Types/Form/FormIpAllowlist.d.mts +2 -1
  859. package/Types/Form/FormIpAllowlist.d.ts +2 -1
  860. package/Types/Form/FormIpAllowlist.js +3 -19
  861. package/Types/Form/FormPrivateUserSignIn.d.mts +21 -0
  862. package/Types/Form/FormPrivateUserSignIn.d.ts +21 -0
  863. package/Types/Form/FormPrivateUserSignIn.js +73 -0
  864. package/Types/Form/FormPrivateUserSignIn.mjs +13 -0
  865. package/Types/GuidedSetup/GuidedSetupRun.d.mts +74 -0
  866. package/Types/GuidedSetup/GuidedSetupRun.d.ts +74 -0
  867. package/Types/GuidedSetup/GuidedSetupRun.js +358 -0
  868. package/Types/GuidedSetup/GuidedSetupRun.mjs +17 -0
  869. package/Types/HeldPermissions.d.mts +10 -0
  870. package/Types/HeldPermissions.d.ts +10 -0
  871. package/Types/HeldPermissions.js +63 -0
  872. package/Types/Host/AndroidAgentPermissions.d.mts +17 -0
  873. package/Types/Host/AndroidAgentPermissions.d.ts +17 -0
  874. package/Types/Host/AndroidAgentPermissions.js +92 -0
  875. package/Types/Host/AndroidAgentPermissions.mjs +7 -0
  876. package/Types/Host/AndroidSecurityPatch.d.mts +13 -0
  877. package/Types/Host/AndroidSecurityPatch.d.ts +13 -0
  878. package/Types/Host/AndroidSecurityPatch.js +114 -0
  879. package/Types/Host/AndroidSecurityPatch.mjs +5 -0
  880. package/Types/Host/HostHealth.d.mts +2 -0
  881. package/Types/Host/HostHealth.d.ts +2 -0
  882. package/Types/Host/HostHealth.js +10 -1
  883. package/Types/Host/HostHealth.mjs +1 -0
  884. package/Types/Host/HostLogSession.d.mts +33 -0
  885. package/Types/Host/HostLogSession.d.ts +33 -0
  886. package/Types/Host/HostLogSession.js +133 -0
  887. package/Types/Host/HostLogSession.mjs +15 -0
  888. package/Types/HostCollector/HostCollector.js +1 -1
  889. package/Types/HostCollector/HostCollectorRoutes.d.mts +1 -0
  890. package/Types/HostCollector/HostCollectorRoutes.d.ts +1 -0
  891. package/Types/HostCollector/HostCollectorRoutes.js +9 -0
  892. package/Types/HostCollector/HostCollectorRoutes.mjs +2 -0
  893. package/Types/Icon/IconProp.d.mts +2 -0
  894. package/Types/Icon/IconProp.d.ts +2 -0
  895. package/Types/Icon/IconProp.js +3 -0
  896. package/Types/IncomingCall/IncomingCallEscalationOrder.d.mts +16 -0
  897. package/Types/IncomingCall/IncomingCallEscalationOrder.d.ts +16 -0
  898. package/Types/IncomingCall/IncomingCallEscalationOrder.js +59 -0
  899. package/Types/IncomingCall/IncomingCallEscalationOrder.mjs +3 -0
  900. package/Types/JsonWebTokenPurpose.d.mts +5 -1
  901. package/Types/JsonWebTokenPurpose.d.ts +5 -1
  902. package/Types/JsonWebTokenPurpose.js +38 -0
  903. package/Types/Kubernetes/Compliance/CisKubernetesBenchmark.d.mts +28 -0
  904. package/Types/Kubernetes/Compliance/CisKubernetesBenchmark.d.ts +28 -0
  905. package/Types/Kubernetes/Compliance/CisKubernetesBenchmark.js +487 -0
  906. package/Types/Kubernetes/Compliance/CisKubernetesBenchmark.mjs +14 -0
  907. package/Types/Kubernetes/Compliance/KubernetesAgentWorkloads.d.mts +22 -0
  908. package/Types/Kubernetes/Compliance/KubernetesAgentWorkloads.d.ts +22 -0
  909. package/Types/Kubernetes/Compliance/KubernetesAgentWorkloads.js +105 -0
  910. package/Types/Kubernetes/Compliance/KubernetesAgentWorkloads.mjs +7 -0
  911. package/Types/Kubernetes/Compliance/KubernetesComplianceApiTypes.d.mts +63 -0
  912. package/Types/Kubernetes/Compliance/KubernetesComplianceApiTypes.d.ts +63 -0
  913. package/Types/Kubernetes/Compliance/KubernetesComplianceApiTypes.js +14 -0
  914. package/Types/Kubernetes/Compliance/KubernetesComplianceApiTypes.mjs +2 -0
  915. package/Types/Kubernetes/Compliance/KubernetesComplianceCatalog.d.mts +41 -0
  916. package/Types/Kubernetes/Compliance/KubernetesComplianceCatalog.d.ts +41 -0
  917. package/Types/Kubernetes/Compliance/KubernetesComplianceCatalog.js +521 -0
  918. package/Types/Kubernetes/Compliance/KubernetesComplianceCatalog.mjs +15 -0
  919. package/Types/Kubernetes/Compliance/KubernetesComplianceFinding.d.mts +31 -0
  920. package/Types/Kubernetes/Compliance/KubernetesComplianceFinding.d.ts +31 -0
  921. package/Types/Kubernetes/Compliance/KubernetesComplianceFinding.js +17 -0
  922. package/Types/Kubernetes/Compliance/KubernetesComplianceFinding.mjs +3 -0
  923. package/Types/Kubernetes/Compliance/KubernetesComplianceFramework.d.mts +16 -0
  924. package/Types/Kubernetes/Compliance/KubernetesComplianceFramework.d.ts +16 -0
  925. package/Types/Kubernetes/Compliance/KubernetesComplianceFramework.js +124 -0
  926. package/Types/Kubernetes/Compliance/KubernetesComplianceFramework.mjs +12 -0
  927. package/Types/Kubernetes/Compliance/KubernetesComplianceScoring.d.mts +66 -0
  928. package/Types/Kubernetes/Compliance/KubernetesComplianceScoring.d.ts +66 -0
  929. package/Types/Kubernetes/Compliance/KubernetesComplianceScoring.js +684 -0
  930. package/Types/Kubernetes/Compliance/KubernetesComplianceScoring.mjs +7 -0
  931. package/Types/Kubernetes/Compliance/KubernetesComplianceSnapshot.d.mts +58 -0
  932. package/Types/Kubernetes/Compliance/KubernetesComplianceSnapshot.d.ts +58 -0
  933. package/Types/Kubernetes/Compliance/KubernetesComplianceSnapshot.js +35 -0
  934. package/Types/Kubernetes/Compliance/KubernetesComplianceSnapshot.mjs +3 -0
  935. package/Types/Kubernetes/Compliance/KubernetesComplianceSummary.d.mts +52 -0
  936. package/Types/Kubernetes/Compliance/KubernetesComplianceSummary.d.ts +52 -0
  937. package/Types/Kubernetes/Compliance/KubernetesComplianceSummary.js +243 -0
  938. package/Types/Kubernetes/Compliance/KubernetesComplianceSummary.mjs +12 -0
  939. package/Types/Kubernetes/Compliance/KubernetesNodeBenchmarkCatalog.d.mts +29 -0
  940. package/Types/Kubernetes/Compliance/KubernetesNodeBenchmarkCatalog.d.ts +29 -0
  941. package/Types/Kubernetes/Compliance/KubernetesNodeBenchmarkCatalog.js +444 -0
  942. package/Types/Kubernetes/Compliance/KubernetesNodeBenchmarkCatalog.mjs +7 -0
  943. package/Types/Kubernetes/Compliance/KubernetesNodeBenchmarkScoring.d.mts +22 -0
  944. package/Types/Kubernetes/Compliance/KubernetesNodeBenchmarkScoring.d.ts +22 -0
  945. package/Types/Kubernetes/Compliance/KubernetesNodeBenchmarkScoring.js +157 -0
  946. package/Types/Kubernetes/Compliance/KubernetesNodeBenchmarkScoring.mjs +7 -0
  947. package/Types/Kubernetes/Compliance/KubernetesRbac.d.mts +49 -0
  948. package/Types/Kubernetes/Compliance/KubernetesRbac.d.ts +49 -0
  949. package/Types/Kubernetes/Compliance/KubernetesRbac.js +187 -0
  950. package/Types/Kubernetes/Compliance/KubernetesRbac.mjs +23 -0
  951. package/Types/Kubernetes/Compliance/KubernetesVersion.d.mts +11 -0
  952. package/Types/Kubernetes/Compliance/KubernetesVersion.d.ts +11 -0
  953. package/Types/Kubernetes/Compliance/KubernetesVersion.js +79 -0
  954. package/Types/Kubernetes/Compliance/KubernetesVersion.mjs +8 -0
  955. package/Types/Kubernetes/Compliance/NsaCisaHardening.d.mts +56 -0
  956. package/Types/Kubernetes/Compliance/NsaCisaHardening.d.ts +56 -0
  957. package/Types/Kubernetes/Compliance/NsaCisaHardening.js +594 -0
  958. package/Types/Kubernetes/Compliance/NsaCisaHardening.mjs +14 -0
  959. package/Types/Kubernetes/Compliance/PodSecurityStandards.d.mts +58 -0
  960. package/Types/Kubernetes/Compliance/PodSecurityStandards.d.ts +58 -0
  961. package/Types/Kubernetes/Compliance/PodSecurityStandards.js +638 -0
  962. package/Types/Kubernetes/Compliance/PodSecurityStandards.mjs +20 -0
  963. package/Types/Kubernetes/KubernetesCostCorrection.d.mts +26 -0
  964. package/Types/Kubernetes/KubernetesCostCorrection.d.ts +26 -0
  965. package/Types/Kubernetes/KubernetesCostCorrection.js +42 -0
  966. package/Types/Kubernetes/KubernetesCostCorrection.mjs +3 -0
  967. package/Types/Kubernetes/KubernetesCostEfficiency.d.mts +16 -0
  968. package/Types/Kubernetes/KubernetesCostEfficiency.d.ts +16 -0
  969. package/Types/Kubernetes/KubernetesCostEfficiency.js +74 -0
  970. package/Types/Kubernetes/KubernetesCostEfficiency.mjs +7 -0
  971. package/Types/Kubernetes/KubernetesCostIngest.d.mts +6 -0
  972. package/Types/Kubernetes/KubernetesCostIngest.d.ts +6 -0
  973. package/Types/Kubernetes/KubernetesCostIngest.js +14 -16
  974. package/Types/Kubernetes/KubernetesCostIngest.mjs +3 -0
  975. package/Types/Kubernetes/KubernetesCostMetrics.d.mts +47 -0
  976. package/Types/Kubernetes/KubernetesCostMetrics.d.ts +47 -0
  977. package/Types/Kubernetes/KubernetesCostMetrics.js +296 -0
  978. package/Types/Kubernetes/KubernetesCostMetrics.mjs +19 -0
  979. package/Types/Kubernetes/KubernetesCostPricing.d.mts +28 -0
  980. package/Types/Kubernetes/KubernetesCostPricing.d.ts +28 -0
  981. package/Types/Kubernetes/KubernetesCostPricing.js +144 -0
  982. package/Types/Kubernetes/KubernetesCostPricing.mjs +9 -0
  983. package/Types/Kubernetes/KubernetesHealth.d.mts +26 -3
  984. package/Types/Kubernetes/KubernetesHealth.d.ts +26 -3
  985. package/Types/Kubernetes/KubernetesHealth.js +424 -37
  986. package/Types/Kubernetes/KubernetesHealth.mjs +2 -0
  987. package/Types/Kubernetes/KubernetesInventoryExtractor.js +20 -3
  988. package/Types/Kubernetes/KubernetesNodeBenchmark.d.mts +46 -0
  989. package/Types/Kubernetes/KubernetesNodeBenchmark.d.ts +46 -0
  990. package/Types/Kubernetes/KubernetesNodeBenchmark.js +321 -0
  991. package/Types/Kubernetes/KubernetesNodeBenchmark.mjs +23 -0
  992. package/Types/Kubernetes/KubernetesObjectParser.d.mts +32 -0
  993. package/Types/Kubernetes/KubernetesObjectParser.d.ts +32 -0
  994. package/Types/Kubernetes/KubernetesObjectParser.js +198 -4
  995. package/Types/Kubernetes/KubernetesObjectParser.mjs +5 -0
  996. package/Types/Kubernetes/KubernetesPodSecurity.d.mts +65 -0
  997. package/Types/Kubernetes/KubernetesPodSecurity.d.ts +65 -0
  998. package/Types/Kubernetes/KubernetesPodSecurity.js +409 -0
  999. package/Types/Kubernetes/KubernetesPodSecurity.mjs +6 -0
  1000. package/Types/Kubernetes/KubernetesPolicyObjects.d.mts +62 -0
  1001. package/Types/Kubernetes/KubernetesPolicyObjects.d.ts +62 -0
  1002. package/Types/Kubernetes/KubernetesPolicyObjects.js +239 -0
  1003. package/Types/Kubernetes/KubernetesPolicyObjects.mjs +16 -0
  1004. package/Types/Kubernetes/KubernetesStorageHealth.d.mts +56 -0
  1005. package/Types/Kubernetes/KubernetesStorageHealth.d.ts +56 -0
  1006. package/Types/Kubernetes/KubernetesStorageHealth.js +413 -0
  1007. package/Types/Kubernetes/KubernetesStorageHealth.mjs +21 -0
  1008. package/Types/Kubernetes/OpenShiftObjectParser.d.mts +2 -0
  1009. package/Types/Kubernetes/OpenShiftObjectParser.d.ts +2 -0
  1010. package/Types/Kubernetes/OpenShiftObjectParser.js +6 -0
  1011. package/Types/Log/LogAnalyticsAggregation.d.mts +9 -0
  1012. package/Types/Log/LogAnalyticsAggregation.d.ts +9 -0
  1013. package/Types/Log/LogAnalyticsAggregation.js +63 -0
  1014. package/Types/Log/LogAnalyticsAggregation.mjs +8 -0
  1015. package/Types/MeaningKeys.js +47 -0
  1016. package/Types/MessageQueue/MessagingTelemetryResolver.js +4 -2
  1017. package/Types/Metrics/MetricOutputReaders.d.mts +31 -0
  1018. package/Types/Metrics/MetricOutputReaders.d.ts +31 -0
  1019. package/Types/Metrics/MetricOutputReaders.js +179 -0
  1020. package/Types/Metrics/MetricOutputReaders.mjs +7 -0
  1021. package/Types/Monitor/CloudAlertTemplates.d.mts +46 -0
  1022. package/Types/Monitor/CloudAlertTemplates.d.ts +46 -0
  1023. package/Types/Monitor/CloudAlertTemplates.js +835 -6
  1024. package/Types/Monitor/CloudAlertTemplates.mjs +18 -0
  1025. package/Types/Monitor/CriteriaFilter.d.mts +4 -0
  1026. package/Types/Monitor/CriteriaFilter.d.ts +4 -0
  1027. package/Types/Monitor/CriteriaFilter.js +19 -0
  1028. package/Types/Monitor/CriteriaFilterTerms.js +4 -0
  1029. package/Types/Monitor/DataPipelineAlertTemplates.js +34 -1
  1030. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.d.mts +14 -0
  1031. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.d.ts +14 -0
  1032. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.js +89 -2
  1033. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.mjs +6 -0
  1034. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorResponse.d.mts +6 -0
  1035. package/Types/Monitor/ExceptionMonitor/ExceptionMonitorResponse.d.ts +6 -0
  1036. package/Types/Monitor/HostAlertTemplates.d.mts +15 -0
  1037. package/Types/Monitor/HostAlertTemplates.d.ts +15 -0
  1038. package/Types/Monitor/HostAlertTemplates.js +426 -8
  1039. package/Types/Monitor/HostAlertTemplates.mjs +5 -0
  1040. package/Types/Monitor/KubernetesAlertTemplates.d.mts +5 -1
  1041. package/Types/Monitor/KubernetesAlertTemplates.d.ts +5 -1
  1042. package/Types/Monitor/KubernetesAlertTemplates.js +419 -27
  1043. package/Types/Monitor/KubernetesAlertTemplates.mjs +3 -0
  1044. package/Types/Monitor/KubernetesMetricCatalog.d.mts +1 -1
  1045. package/Types/Monitor/KubernetesMetricCatalog.d.ts +1 -1
  1046. package/Types/Monitor/KubernetesMetricCatalog.js +133 -1
  1047. package/Types/Monitor/ManagedDeviceAlertTemplates.d.mts +75 -0
  1048. package/Types/Monitor/ManagedDeviceAlertTemplates.d.ts +75 -0
  1049. package/Types/Monitor/ManagedDeviceAlertTemplates.js +1177 -0
  1050. package/Types/Monitor/ManagedDeviceAlertTemplates.mjs +23 -0
  1051. package/Types/Monitor/MonitorSecretType.d.mts +11 -0
  1052. package/Types/Monitor/MonitorSecretType.d.ts +11 -0
  1053. package/Types/Monitor/MonitorSecretType.js +37 -0
  1054. package/Types/Monitor/MonitorSecretType.mjs +3 -0
  1055. package/Types/Monitor/MonitorStep.d.mts +5 -0
  1056. package/Types/Monitor/MonitorStep.d.ts +5 -0
  1057. package/Types/Monitor/MonitorStep.js +58 -1
  1058. package/Types/Monitor/MonitorStepExceptionMonitor.d.mts +7 -0
  1059. package/Types/Monitor/MonitorStepExceptionMonitor.d.ts +7 -0
  1060. package/Types/Monitor/MonitorStepExceptionMonitor.js +82 -3
  1061. package/Types/Monitor/MonitorStepIoTMonitor.js +4 -17
  1062. package/Types/Monitor/MonitorStepMetricMonitor.d.mts +15 -0
  1063. package/Types/Monitor/MonitorStepMetricMonitor.d.ts +15 -0
  1064. package/Types/Monitor/MonitorStepMetricMonitor.js +107 -1
  1065. package/Types/Monitor/MonitorStepMetricMonitor.mjs +3 -0
  1066. package/Types/Monitor/MonitorStepTraceMonitor.d.mts +4 -0
  1067. package/Types/Monitor/MonitorStepTraceMonitor.d.ts +4 -0
  1068. package/Types/Monitor/MonitorStepTraceMonitor.js +50 -0
  1069. package/Types/Monitor/MonitorSteps.d.mts +1 -0
  1070. package/Types/Monitor/MonitorSteps.d.ts +1 -0
  1071. package/Types/Monitor/MonitorSteps.js +22 -1
  1072. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.mts +2 -1
  1073. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.ts +2 -1
  1074. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.js +160 -31
  1075. package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.mjs +1 -0
  1076. package/Types/Monitor/Recommendation/MonitorRecommendationCreateUtil.d.mts +38 -0
  1077. package/Types/Monitor/Recommendation/MonitorRecommendationCreateUtil.d.ts +38 -0
  1078. package/Types/Monitor/Recommendation/MonitorRecommendationCreateUtil.js +168 -0
  1079. package/Types/Monitor/Recommendation/MonitorRecommendationCreateUtil.mjs +2 -0
  1080. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.mts +17 -1
  1081. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.ts +17 -1
  1082. package/Types/Monitor/Recommendation/MonitorRecommendationTypes.js +8 -0
  1083. package/Types/Monitor/Recommendation/MonitorRecommendationUtil.d.mts +2 -0
  1084. package/Types/Monitor/Recommendation/MonitorRecommendationUtil.d.ts +2 -0
  1085. package/Types/Monitor/Recommendation/MonitorRecommendationUtil.js +85 -16
  1086. package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.d.mts +2 -1
  1087. package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.d.ts +2 -1
  1088. package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.js +4 -3
  1089. package/Types/Monitor/RumAlertTemplates.d.mts +25 -1
  1090. package/Types/Monitor/RumAlertTemplates.d.ts +25 -1
  1091. package/Types/Monitor/RumAlertTemplates.js +724 -12
  1092. package/Types/Monitor/RumAlertTemplates.mjs +13 -0
  1093. package/Types/Monitor/SeriesContext/SeriesDebugHints.d.mts +13 -0
  1094. package/Types/Monitor/SeriesContext/SeriesDebugHints.d.ts +13 -0
  1095. package/Types/Monitor/SeriesContext/SeriesDebugHints.js +341 -5
  1096. package/Types/Monitor/SeriesContext/SeriesLabelDisplay.d.mts +15 -11
  1097. package/Types/Monitor/SeriesContext/SeriesLabelDisplay.d.ts +15 -11
  1098. package/Types/Monitor/SeriesContext/SeriesLabelDisplay.js +117 -4
  1099. package/Types/Monitor/TelemetryAlertRule.d.mts +1 -0
  1100. package/Types/Monitor/TelemetryAlertRule.d.ts +1 -0
  1101. package/Types/Monitor/TelemetryAlertRule.js +14 -6
  1102. package/Types/Monitor/TraceMonitor/TraceMonitorGroupResult.d.mts +17 -0
  1103. package/Types/Monitor/TraceMonitor/TraceMonitorGroupResult.d.ts +17 -0
  1104. package/Types/Monitor/TraceMonitor/TraceMonitorGroupResult.js +2 -0
  1105. package/Types/Monitor/TraceMonitor/TraceMonitorGroupResult.mjs +1 -0
  1106. package/Types/Monitor/TraceMonitor/TraceMonitorResponse.d.mts +6 -0
  1107. package/Types/Monitor/TraceMonitor/TraceMonitorResponse.d.ts +6 -0
  1108. package/Types/NetworkController/NetworkControllerDeviceAdd.d.mts +13 -2
  1109. package/Types/NetworkController/NetworkControllerDeviceAdd.d.ts +13 -2
  1110. package/Types/NetworkController/NetworkControllerDeviceAdd.js +119 -18
  1111. package/Types/NetworkController/NetworkControllerDeviceAdd.mjs +4 -1
  1112. package/Types/NetworkDevice/DiscoveredDevice.d.mts +1 -0
  1113. package/Types/NetworkDevice/DiscoveredDevice.d.ts +1 -0
  1114. package/Types/NetworkDevice/DiscoveredDevice.js +4 -0
  1115. package/Types/NetworkDevice/DiscoveryImport.d.mts +1 -0
  1116. package/Types/NetworkDevice/DiscoveryImport.d.ts +1 -0
  1117. package/Types/NetworkDevice/DiscoveryImport.js +11 -1
  1118. package/Types/NetworkDevice/DiscoveryImport.mjs +1 -0
  1119. package/Types/NetworkDevice/NetworkDeviceTieSource.d.mts +10 -0
  1120. package/Types/NetworkDevice/NetworkDeviceTieSource.d.ts +10 -0
  1121. package/Types/NetworkDevice/NetworkDeviceTieSource.js +54 -0
  1122. package/Types/NetworkDevice/NetworkDeviceTieSource.mjs +4 -0
  1123. package/Types/Notification/OwnerNotificationDelivery.d.mts +28 -0
  1124. package/Types/Notification/OwnerNotificationDelivery.d.ts +28 -0
  1125. package/Types/Notification/OwnerNotificationDelivery.js +47 -1
  1126. package/Types/Notification/WhoWasTold.js +5 -3
  1127. package/Types/NotificationSetting/NotificationEmailRollupCategory.d.mts +4 -0
  1128. package/Types/NotificationSetting/NotificationEmailRollupCategory.d.ts +4 -0
  1129. package/Types/NotificationSetting/NotificationEmailRollupCategory.js +44 -0
  1130. package/Types/NotificationSetting/NotificationEmailRollupPolicy.js +10 -1
  1131. package/Types/NotificationSetting/NotificationSettingEventType.d.mts +12 -0
  1132. package/Types/NotificationSetting/NotificationSettingEventType.d.ts +12 -0
  1133. package/Types/NotificationSetting/NotificationSettingEventType.js +39 -0
  1134. package/Types/NotificationSetting/RoutineEmailEvents.js +12 -0
  1135. package/Types/ObservabilityImport/ObservabilityImport.d.mts +114 -0
  1136. package/Types/ObservabilityImport/ObservabilityImport.d.ts +114 -0
  1137. package/Types/ObservabilityImport/ObservabilityImport.js +105 -0
  1138. package/Types/ObservabilityImport/ObservabilityImport.mjs +10 -0
  1139. package/Types/OnCallDutyPolicy/EscalationRuleResponderOnce.d.mts +20 -0
  1140. package/Types/OnCallDutyPolicy/EscalationRuleResponderOnce.d.ts +20 -0
  1141. package/Types/OnCallDutyPolicy/EscalationRuleResponderOnce.js +79 -0
  1142. package/Types/OnCallDutyPolicy/EscalationRuleResponderOnce.mjs +7 -0
  1143. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +4 -0
  1144. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +4 -0
  1145. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +20 -1
  1146. package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +2 -0
  1147. package/Types/OnCallDutyPolicy/OnCallPageChannel.d.mts +2 -0
  1148. package/Types/OnCallDutyPolicy/OnCallPageChannel.d.ts +2 -0
  1149. package/Types/OnCallDutyPolicy/OnCallSentLine.d.mts +10 -1
  1150. package/Types/OnCallDutyPolicy/OnCallSentLine.d.ts +10 -1
  1151. package/Types/OnCallDutyPolicy/OnCallSentLine.js +50 -1
  1152. package/Types/OnCallDutyPolicy/OnCallSentLine.mjs +6 -0
  1153. package/Types/OnCallDutyPolicy/PagedFirst.d.mts +55 -0
  1154. package/Types/OnCallDutyPolicy/PagedFirst.d.ts +55 -0
  1155. package/Types/OnCallDutyPolicy/PagedFirst.js +205 -0
  1156. package/Types/OnCallDutyPolicy/PagedFirst.mjs +8 -0
  1157. package/Types/OnCallDutyPolicy/ScheduleTimeline.d.mts +1 -0
  1158. package/Types/OnCallDutyPolicy/ScheduleTimeline.d.ts +1 -0
  1159. package/Types/OnCallDutyPolicy/ScheduleTimeline.js +2 -0
  1160. package/Types/OnCallDutyPolicy/ScheduleTimelineLayout.d.mts +0 -3
  1161. package/Types/OnCallDutyPolicy/ScheduleTimelineLayout.d.ts +0 -3
  1162. package/Types/OnCallDutyPolicy/ScheduleTimelineLayout.js +36 -21
  1163. package/Types/OnCallDutyPolicy/UserOverrideTeamAccess.d.mts +22 -0
  1164. package/Types/OnCallDutyPolicy/UserOverrideTeamAccess.d.ts +22 -0
  1165. package/Types/OnCallDutyPolicy/UserOverrideTeamAccess.js +135 -0
  1166. package/Types/OnCallDutyPolicy/UserOverrideTeamAccess.mjs +9 -0
  1167. package/Types/OpenStack/OpenStackBareMetal.d.mts +3 -0
  1168. package/Types/OpenStack/OpenStackBareMetal.d.ts +3 -0
  1169. package/Types/OpenStack/OpenStackBareMetal.js +8 -1
  1170. package/Types/OpenStack/OpenStackBareMetal.mjs +2 -0
  1171. package/Types/OpenStack/OpenStackHealthRules.d.mts +11 -0
  1172. package/Types/OpenStack/OpenStackHealthRules.d.ts +11 -0
  1173. package/Types/OpenStack/OpenStackHealthRules.js +41 -1
  1174. package/Types/OpenStack/OpenStackHealthRules.mjs +4 -0
  1175. package/Types/PacketCapture/PacketCapturePermissions.js +24 -12
  1176. package/Types/Permission.d.mts +134 -1
  1177. package/Types/Permission.d.ts +134 -1
  1178. package/Types/Permission.js +848 -5
  1179. package/Types/Permission.mjs +1 -0
  1180. package/Types/Probe/ProbeApiIngestResponse.d.mts +1 -0
  1181. package/Types/Probe/ProbeApiIngestResponse.d.ts +1 -0
  1182. package/Types/Probe/ProbeCapability.d.mts +3 -1
  1183. package/Types/Probe/ProbeCapability.d.ts +3 -1
  1184. package/Types/Probe/ProbeCapability.js +21 -1
  1185. package/Types/Probe/ProbeCapability.mjs +1 -0
  1186. package/Types/Probe/ProbeKeyHeaders.d.mts +17 -0
  1187. package/Types/Probe/ProbeKeyHeaders.d.ts +17 -0
  1188. package/Types/Probe/ProbeKeyHeaders.js +74 -0
  1189. package/Types/Probe/ProbeKeyHeaders.mjs +4 -0
  1190. package/Types/Probe/ProbeReportedVersion.d.mts +48 -0
  1191. package/Types/Probe/ProbeReportedVersion.d.ts +48 -0
  1192. package/Types/Probe/ProbeReportedVersion.js +280 -0
  1193. package/Types/Probe/ProbeReportedVersion.mjs +9 -0
  1194. package/Types/Product/ProductLevels.d.mts +54 -0
  1195. package/Types/Product/ProductLevels.d.ts +54 -0
  1196. package/Types/Product/ProductLevels.js +502 -0
  1197. package/Types/Product/ProductLevels.mjs +20 -0
  1198. package/Types/Product/ProductRecordTables.d.mts +0 -1
  1199. package/Types/Product/ProductRecordTables.d.ts +0 -1
  1200. package/Types/Product/ProductRecordTables.js +38 -166
  1201. package/Types/Product/ProductRecordTables.mjs +0 -1
  1202. package/Types/Product/TablesOfNoProduct.d.mts +1 -0
  1203. package/Types/Product/TablesOfNoProduct.d.ts +1 -0
  1204. package/Types/Product/TablesOfNoProduct.js +187 -0
  1205. package/Types/Product/TablesOfNoProduct.mjs +2 -0
  1206. package/Types/ProviderLogo/AllProviderLogoMarks.js +4 -0
  1207. package/Types/ProviderLogo/Marks/android.d.mts +3 -0
  1208. package/Types/ProviderLogo/Marks/android.d.ts +3 -0
  1209. package/Types/ProviderLogo/Marks/android.js +15 -0
  1210. package/Types/ProviderLogo/Marks/android.mjs +2 -0
  1211. package/Types/ProviderLogo/Marks/crossplane.d.mts +3 -0
  1212. package/Types/ProviderLogo/Marks/crossplane.d.ts +3 -0
  1213. package/Types/ProviderLogo/Marks/crossplane.js +22 -0
  1214. package/Types/ProviderLogo/Marks/crossplane.mjs +2 -0
  1215. package/Types/ProviderLogo/ProviderLogo.d.mts +2 -0
  1216. package/Types/ProviderLogo/ProviderLogo.d.ts +2 -0
  1217. package/Types/ProviderLogo/ProviderLogo.js +5 -0
  1218. package/Types/ProviderLogo/ProviderLogoMarks.js +2 -0
  1219. package/Types/RecordAccess/RecordAccess.d.mts +50 -0
  1220. package/Types/RecordAccess/RecordAccess.d.ts +50 -0
  1221. package/Types/RecordAccess/RecordAccess.js +290 -0
  1222. package/Types/RecordAccess/RecordAccess.mjs +6 -0
  1223. package/Types/Rules/RuleCriteriaFieldRegistry.js +2 -0
  1224. package/Types/Rules/RuleCriteriaSubject.d.mts +1 -0
  1225. package/Types/Rules/RuleCriteriaSubject.d.ts +1 -0
  1226. package/Types/Rules/RuleCriteriaSubject.js +2 -0
  1227. package/Types/Rules/RuleRun.d.mts +1 -0
  1228. package/Types/Rules/RuleRun.d.ts +1 -0
  1229. package/Types/Rules/RuleRun.js +2 -0
  1230. package/Types/Rum/MobileAppTelemetry.d.mts +33 -0
  1231. package/Types/Rum/MobileAppTelemetry.d.ts +33 -0
  1232. package/Types/Rum/MobileAppTelemetry.js +177 -0
  1233. package/Types/Rum/MobileAppTelemetry.mjs +26 -0
  1234. package/Types/Rum/RumClientKind.d.mts +5 -0
  1235. package/Types/Rum/RumClientKind.d.ts +5 -0
  1236. package/Types/Rum/RumClientKind.js +57 -0
  1237. package/Types/Rum/RumClientKind.mjs +5 -0
  1238. package/Types/Rum/SessionReplay.d.mts +3 -0
  1239. package/Types/Rum/SessionReplay.d.ts +3 -0
  1240. package/Types/Rum/SessionReplay.js +1 -1
  1241. package/Types/Rum/SessionReplayFrustrationSignals.d.mts +3 -1
  1242. package/Types/Rum/SessionReplayFrustrationSignals.d.ts +3 -1
  1243. package/Types/Rum/SessionReplayFrustrationSignals.js +32 -2
  1244. package/Types/Rum/SessionReplayFrustrationSignals.mjs +2 -0
  1245. package/Types/Rum/SessionReplayPageRules.d.mts +10 -0
  1246. package/Types/Rum/SessionReplayPageRules.d.ts +10 -0
  1247. package/Types/Rum/SessionReplayPageRules.js +115 -0
  1248. package/Types/Rum/SessionReplayPageRules.mjs +7 -0
  1249. package/Types/Rum/SessionReplayReadableProperties.d.mts +4 -0
  1250. package/Types/Rum/SessionReplayReadableProperties.d.ts +4 -0
  1251. package/Types/Rum/SessionReplayReadableProperties.js +64 -0
  1252. package/Types/Rum/SessionReplayReadableProperties.mjs +5 -0
  1253. package/Types/Rum/SessionReplaySignalMetric.d.mts +10 -0
  1254. package/Types/Rum/SessionReplaySignalMetric.d.ts +10 -0
  1255. package/Types/Rum/SessionReplaySignalMetric.js +62 -0
  1256. package/Types/Rum/SessionReplaySignalMetric.mjs +8 -0
  1257. package/Types/Runbook/HttpStepCertificates.d.mts +30 -0
  1258. package/Types/Runbook/HttpStepCertificates.d.ts +30 -0
  1259. package/Types/Runbook/HttpStepCertificates.js +166 -0
  1260. package/Types/Runbook/HttpStepCertificates.mjs +18 -0
  1261. package/Types/Runbook/RunbookStep.d.mts +2 -0
  1262. package/Types/Runbook/RunbookStep.d.ts +2 -0
  1263. package/Types/SSO/IdentityProviderSignOut.d.mts +17 -1
  1264. package/Types/SSO/IdentityProviderSignOut.d.ts +17 -1
  1265. package/Types/SSO/IdentityProviderSignOut.js +120 -11
  1266. package/Types/SSO/IdentityProviderSignOut.mjs +6 -0
  1267. package/Types/SSO/LocalSignInClearing.d.mts +35 -0
  1268. package/Types/SSO/LocalSignInClearing.d.ts +35 -0
  1269. package/Types/SSO/LocalSignInClearing.js +166 -0
  1270. package/Types/SSO/LocalSignInClearing.mjs +19 -0
  1271. package/Types/SSO/MobileSsoHandOff.d.mts +17 -0
  1272. package/Types/SSO/MobileSsoHandOff.d.ts +17 -0
  1273. package/Types/SSO/MobileSsoHandOff.js +39 -0
  1274. package/Types/SSO/MobileSsoHandOff.mjs +6 -0
  1275. package/Types/SSO/SignInMethods.d.mts +5 -0
  1276. package/Types/SSO/SignInMethods.d.ts +5 -0
  1277. package/Types/SSO/SignInMethods.js +29 -1
  1278. package/Types/SSO/SignInMethods.mjs +4 -0
  1279. package/Types/SSO/SignInSettingsClearedEmail.d.mts +33 -0
  1280. package/Types/SSO/SignInSettingsClearedEmail.d.ts +33 -0
  1281. package/Types/SSO/SignInSettingsClearedEmail.js +144 -0
  1282. package/Types/SSO/SignInSettingsClearedEmail.mjs +8 -0
  1283. package/Types/SSO/SsoManagedSignIn.d.mts +23 -0
  1284. package/Types/SSO/SsoManagedSignIn.d.ts +23 -0
  1285. package/Types/SSO/SsoManagedSignIn.js +205 -0
  1286. package/Types/SSO/SsoManagedSignIn.mjs +9 -0
  1287. package/Types/ScheduledMaintenance/MaintenanceTemplateSchedule.d.mts +50 -0
  1288. package/Types/ScheduledMaintenance/MaintenanceTemplateSchedule.d.ts +50 -0
  1289. package/Types/ScheduledMaintenance/MaintenanceTemplateSchedule.js +269 -0
  1290. package/Types/ScheduledMaintenance/MaintenanceTemplateSchedule.mjs +2 -0
  1291. package/Types/ScheduledMaintenance/ScheduledMaintenanceSubscriberReach.d.mts +50 -0
  1292. package/Types/ScheduledMaintenance/ScheduledMaintenanceSubscriberReach.d.ts +50 -0
  1293. package/Types/ScheduledMaintenance/ScheduledMaintenanceSubscriberReach.js +230 -0
  1294. package/Types/ScheduledMaintenance/ScheduledMaintenanceSubscriberReach.mjs +4 -0
  1295. package/Types/SecurityBlocklist/SecurityBlock.d.mts +130 -0
  1296. package/Types/SecurityBlocklist/SecurityBlock.d.ts +130 -0
  1297. package/Types/SecurityBlocklist/SecurityBlock.js +428 -0
  1298. package/Types/SecurityBlocklist/SecurityBlock.mjs +40 -0
  1299. package/Types/SecurityBlocklist/SecurityBlockEnforcement.d.mts +40 -0
  1300. package/Types/SecurityBlocklist/SecurityBlockEnforcement.d.ts +40 -0
  1301. package/Types/SecurityBlocklist/SecurityBlockEnforcement.js +153 -0
  1302. package/Types/SecurityBlocklist/SecurityBlockEnforcement.mjs +11 -0
  1303. package/Types/SecurityBlocklist/SecurityProtectedAddress.d.mts +50 -0
  1304. package/Types/SecurityBlocklist/SecurityProtectedAddress.d.ts +50 -0
  1305. package/Types/SecurityBlocklist/SecurityProtectedAddress.js +248 -0
  1306. package/Types/SecurityBlocklist/SecurityProtectedAddress.mjs +16 -0
  1307. package/Types/SecurityCase/SecurityCaseEventEvidence.d.mts +6 -0
  1308. package/Types/SecurityCase/SecurityCaseEventEvidence.d.ts +6 -0
  1309. package/Types/SecurityCase/SecurityCaseEventEvidence.js +17 -1
  1310. package/Types/SecurityCase/SecurityCaseMatches.d.mts +8 -1
  1311. package/Types/SecurityCase/SecurityCaseMatches.d.ts +8 -1
  1312. package/Types/SecurityCase/SecurityCaseMatches.js +12 -2
  1313. package/Types/SecurityCase/SecurityConnection.d.mts +14 -0
  1314. package/Types/SecurityCase/SecurityConnection.d.ts +14 -0
  1315. package/Types/SecurityCase/SecurityConnection.js +54 -2
  1316. package/Types/SecurityCase/SecurityConnection.mjs +9 -0
  1317. package/Types/SecurityCase/SecurityDetectionMatchedEvents.d.mts +43 -0
  1318. package/Types/SecurityCase/SecurityDetectionMatchedEvents.d.ts +43 -0
  1319. package/Types/SecurityCase/SecurityDetectionMatchedEvents.js +365 -0
  1320. package/Types/SecurityCase/SecurityDetectionMatchedEvents.mjs +20 -0
  1321. package/Types/SecurityCase/SecurityDetectionText.d.mts +3 -0
  1322. package/Types/SecurityCase/SecurityDetectionText.d.ts +3 -0
  1323. package/Types/SecurityCase/SecurityDetectionText.js +37 -0
  1324. package/Types/SecurityCase/SecurityDetectionText.mjs +4 -0
  1325. package/Types/SecurityEvent/DetectionFindingConstants.d.mts +2 -0
  1326. package/Types/SecurityEvent/DetectionFindingConstants.d.ts +2 -0
  1327. package/Types/SecurityEvent/DetectionFindingConstants.js +29 -7
  1328. package/Types/SecurityEvent/DetectionFindingConstants.mjs +2 -0
  1329. package/Types/SecurityEvent/DetectionRuleLibraryResponseSteps.d.mts +8 -0
  1330. package/Types/SecurityEvent/DetectionRuleLibraryResponseSteps.d.ts +8 -0
  1331. package/Types/SecurityEvent/DetectionRuleLibraryResponseSteps.js +1400 -0
  1332. package/Types/SecurityEvent/DetectionRuleLibraryResponseSteps.mjs +7 -0
  1333. package/Types/SecurityEvent/DetectionRuleResponseSteps.d.mts +26 -0
  1334. package/Types/SecurityEvent/DetectionRuleResponseSteps.d.ts +26 -0
  1335. package/Types/SecurityEvent/DetectionRuleResponseSteps.js +184 -0
  1336. package/Types/SecurityEvent/DetectionRuleResponseSteps.mjs +14 -0
  1337. package/Types/SecurityEvent/NormalizedSecurityEvent.d.mts +1 -0
  1338. package/Types/SecurityEvent/NormalizedSecurityEvent.d.ts +1 -0
  1339. package/Types/SecurityEvent/SecurityAttackCampaign.d.mts +2 -0
  1340. package/Types/SecurityEvent/SecurityAttackCampaign.d.ts +2 -0
  1341. package/Types/SecurityEvent/SecurityAttackCampaign.js +13 -0
  1342. package/Types/SecurityEvent/SecurityAttackCampaign.mjs +1 -0
  1343. package/Types/SecurityEvent/SecurityEventRequestOutcome.d.mts +5 -0
  1344. package/Types/SecurityEvent/SecurityEventRequestOutcome.d.ts +5 -0
  1345. package/Types/SecurityEvent/SecurityEventRequestOutcome.js +12 -0
  1346. package/Types/SecurityEvent/SecurityLogFormat.d.mts +1 -0
  1347. package/Types/SecurityEvent/SecurityLogFormat.d.ts +1 -0
  1348. package/Types/SecurityEvent/SecurityLogFormat.js +10 -0
  1349. package/Types/SecurityPlaybook/SecurityProtectedEntity.d.mts +2 -0
  1350. package/Types/SecurityPlaybook/SecurityProtectedEntity.d.ts +2 -0
  1351. package/Types/SecurityPlaybook/SecurityProtectedEntity.js +56 -15
  1352. package/Types/SecurityPlaybook/SecurityProtectedEntity.mjs +2 -0
  1353. package/Types/ServiceLevelObjective/SliType.js +3 -2
  1354. package/Types/StatusPage/AnnouncementReach.d.mts +16 -0
  1355. package/Types/StatusPage/AnnouncementReach.d.ts +16 -0
  1356. package/Types/StatusPage/AnnouncementReach.js +62 -0
  1357. package/Types/StatusPage/AnnouncementReach.mjs +2 -0
  1358. package/Types/StatusPage/AnnouncementUpdateNotification.d.mts +15 -0
  1359. package/Types/StatusPage/AnnouncementUpdateNotification.d.ts +15 -0
  1360. package/Types/StatusPage/AnnouncementUpdateNotification.js +92 -0
  1361. package/Types/StatusPage/AnnouncementUpdateNotification.mjs +4 -0
  1362. package/Types/StatusPage/PickedStatusPagesReach.d.mts +13 -0
  1363. package/Types/StatusPage/PickedStatusPagesReach.d.ts +13 -0
  1364. package/Types/StatusPage/PickedStatusPagesReach.js +73 -0
  1365. package/Types/StatusPage/PickedStatusPagesReach.mjs +2 -0
  1366. package/Types/StatusPage/PrivateUserEmailAddressChangedEmail.d.mts +21 -0
  1367. package/Types/StatusPage/PrivateUserEmailAddressChangedEmail.d.ts +21 -0
  1368. package/Types/StatusPage/PrivateUserEmailAddressChangedEmail.js +98 -0
  1369. package/Types/StatusPage/PrivateUserEmailAddressChangedEmail.mjs +5 -0
  1370. package/Types/StatusPage/PublicNoteApproval.d.mts +2 -1
  1371. package/Types/StatusPage/PublicNoteApproval.d.ts +2 -1
  1372. package/Types/StatusPage/PublicNoteApproval.js +11 -5
  1373. package/Types/StatusPage/PublicNoteReach.d.mts +26 -0
  1374. package/Types/StatusPage/PublicNoteReach.d.ts +26 -0
  1375. package/Types/StatusPage/PublicNoteReach.js +144 -0
  1376. package/Types/StatusPage/PublicNoteReach.mjs +4 -0
  1377. package/Types/StatusPage/SubscriberNotificationPreview.js +9 -3
  1378. package/Types/Team/CustomRole.d.mts +5 -0
  1379. package/Types/Team/CustomRole.d.ts +5 -0
  1380. package/Types/Team/CustomRole.js +25 -3
  1381. package/Types/Team/CustomRole.mjs +1 -0
  1382. package/Types/Team/InvitationEmailWords.d.mts +13 -0
  1383. package/Types/Team/InvitationEmailWords.d.ts +13 -0
  1384. package/Types/Team/InvitationEmailWords.js +78 -0
  1385. package/Types/Team/InvitationEmailWords.mjs +4 -0
  1386. package/Types/Team/InviteSuggestions.d.mts +36 -0
  1387. package/Types/Team/InviteSuggestions.d.ts +36 -0
  1388. package/Types/Team/InviteSuggestions.js +203 -0
  1389. package/Types/Team/InviteSuggestions.mjs +13 -0
  1390. package/Types/Telemetry/CompatibleIngest.d.mts +9 -0
  1391. package/Types/Telemetry/CompatibleIngest.d.ts +9 -0
  1392. package/Types/Telemetry/CompatibleIngest.js +80 -2
  1393. package/Types/Telemetry/CompatibleIngest.mjs +9 -0
  1394. package/Types/Telemetry/ExceptionSource.d.mts +10 -0
  1395. package/Types/Telemetry/ExceptionSource.d.ts +10 -0
  1396. package/Types/Telemetry/ExceptionSource.js +66 -0
  1397. package/Types/Telemetry/ExceptionSource.mjs +7 -0
  1398. package/Types/Telemetry/InventoryLiveness.d.mts +11 -3
  1399. package/Types/Telemetry/InventoryLiveness.d.ts +11 -3
  1400. package/Types/Telemetry/InventoryLiveness.js +19 -6
  1401. package/Types/Telemetry/InventoryLiveness.mjs +1 -0
  1402. package/Types/Telemetry/ScrubHashTokenFormat.d.mts +6 -0
  1403. package/Types/Telemetry/ScrubHashTokenFormat.d.ts +6 -0
  1404. package/Types/Telemetry/ScrubHashTokenFormat.js +36 -0
  1405. package/Types/Telemetry/ScrubHashTokenFormat.mjs +7 -0
  1406. package/Types/Telemetry/ScrubRule.d.mts +5 -0
  1407. package/Types/Telemetry/ScrubRule.d.ts +5 -0
  1408. package/Types/Telemetry/ScrubRule.js +44 -0
  1409. package/Types/Telemetry/ScrubRule.mjs +1 -0
  1410. package/Types/Telemetry/ServiceType.d.mts +1 -0
  1411. package/Types/Telemetry/ServiceType.d.ts +1 -0
  1412. package/Types/Telemetry/ServiceType.js +8 -0
  1413. package/Types/Telemetry/TelemetryIngestRefusal.js +19 -1
  1414. package/Types/Telemetry/TelemetryIngestSurface.d.mts +3 -1
  1415. package/Types/Telemetry/TelemetryIngestSurface.d.ts +3 -1
  1416. package/Types/Telemetry/TelemetryIngestSurface.js +15 -0
  1417. package/Types/Telemetry/TelemetryIngestionBudget.d.mts +21 -2
  1418. package/Types/Telemetry/TelemetryIngestionBudget.d.ts +21 -2
  1419. package/Types/Telemetry/TelemetryIngestionBudget.js +130 -2
  1420. package/Types/Telemetry/TelemetryIngestionBudget.mjs +5 -0
  1421. package/Types/Telemetry/TelemetryIngestionBudgetMetricType.js +6 -4
  1422. package/Types/Telemetry/TelemetryUsage.js +1 -1
  1423. package/Types/Telemetry/TelemetryUsageMetricType.d.mts +4 -0
  1424. package/Types/Telemetry/TelemetryUsageMetricType.d.ts +4 -0
  1425. package/Types/Telemetry/TelemetryUsageMetricType.js +36 -0
  1426. package/Types/Telemetry/TelemetryUsageMetricType.mjs +2 -0
  1427. package/Types/Timezone.d.mts +1 -0
  1428. package/Types/Timezone.d.ts +1 -0
  1429. package/Types/Timezone.js +1 -0
  1430. package/Types/TimezoneAlias.js +11 -6
  1431. package/Types/ToolImport/ToolImportNote.d.mts +1 -0
  1432. package/Types/ToolImport/ToolImportNote.d.ts +1 -0
  1433. package/Types/ToolImport/ToolImportNote.js +5 -0
  1434. package/Types/ToolImport/ToolImportPlan.d.mts +1 -0
  1435. package/Types/ToolImport/ToolImportPlan.d.ts +1 -0
  1436. package/Types/TwoFactorAuthSetup.d.mts +16 -0
  1437. package/Types/TwoFactorAuthSetup.d.ts +16 -0
  1438. package/Types/TwoFactorAuthSetup.js +64 -0
  1439. package/Types/TwoFactorAuthSetup.mjs +6 -0
  1440. package/Types/UsedBy/UsedBy.d.mts +1 -0
  1441. package/Types/UsedBy/UsedBy.d.ts +1 -0
  1442. package/Types/UsedBy/UsedBy.js +2 -0
  1443. package/Types/UsedBy/UsedByServerProducts.js +1 -0
  1444. package/Types/UserAuthenticationStatus.d.mts +3 -0
  1445. package/Types/UserAuthenticationStatus.d.ts +3 -0
  1446. package/Types/UserSession/SessionEndCause.d.mts +2 -0
  1447. package/Types/UserSession/SessionEndCause.d.ts +2 -0
  1448. package/Types/UserSession/SessionEndCause.js +18 -2
  1449. package/Types/UserSession/SessionSignIn.d.mts +10 -0
  1450. package/Types/UserSession/SessionSignIn.d.ts +10 -0
  1451. package/Types/UserSession/SessionSignIn.js +51 -1
  1452. package/Types/UserSession/SessionSignIn.mjs +2 -0
  1453. package/Types/VideoCall/CallSummaryPosts.d.mts +18 -0
  1454. package/Types/VideoCall/CallSummaryPosts.d.ts +18 -0
  1455. package/Types/VideoCall/CallSummaryPosts.js +106 -0
  1456. package/Types/VideoCall/CallSummaryPosts.mjs +2 -0
  1457. package/Types/WhatsApp/WhatsAppEventTemplates.d.mts +9 -0
  1458. package/Types/WhatsApp/WhatsAppEventTemplates.d.ts +9 -0
  1459. package/Types/WhatsApp/WhatsAppEventTemplates.js +117 -0
  1460. package/Types/WhatsApp/WhatsAppEventTemplates.mjs +5 -0
  1461. package/Types/Workflow/Templates.d.mts +18 -0
  1462. package/Types/Workflow/Templates.d.ts +18 -0
  1463. package/Types/Workflow/Templates.js +194 -2
  1464. package/Types/Workflow/Templates.mjs +1 -0
  1465. package/Types/Workflow/WorkflowRunAs.d.mts +99 -0
  1466. package/Types/Workflow/WorkflowRunAs.d.ts +99 -0
  1467. package/Types/Workflow/WorkflowRunAs.js +411 -0
  1468. package/Types/Workflow/WorkflowRunAs.mjs +39 -0
  1469. package/Types/Workspace/WorkspacePostedMessage.d.mts +12 -0
  1470. package/Types/Workspace/WorkspacePostedMessage.d.ts +12 -0
  1471. package/Types/Workspace/WorkspacePostedMessage.js +57 -0
  1472. package/Types/Workspace/WorkspacePostedMessage.mjs +3 -0
  1473. package/UI/Components/Dropdown/Dropdown.d.mts +2 -0
  1474. package/UI/Components/Dropdown/Dropdown.d.ts +2 -0
  1475. package/UI/Utils/SharedNameOptions.d.mts +5 -0
  1476. package/UI/Utils/SharedNameOptions.d.ts +5 -0
  1477. package/UI/Utils/TranslateTemplate.d.mts +8 -0
  1478. package/UI/Utils/TranslateTemplate.d.ts +8 -0
  1479. package/Utils/AI/MeaningMatch.d.mts +7 -0
  1480. package/Utils/AI/MeaningMatch.d.ts +7 -0
  1481. package/Utils/AI/MeaningMatch.js +49 -1
  1482. package/Utils/AI/MeaningMatch.mjs +1 -0
  1483. package/Utils/API.d.mts +3 -0
  1484. package/Utils/API.d.ts +3 -0
  1485. package/Utils/API.js +48 -1
  1486. package/Utils/AiRemediation/KubectlWaitBudget.d.mts +1 -0
  1487. package/Utils/AiRemediation/KubectlWaitBudget.d.ts +1 -0
  1488. package/Utils/AiRemediation/KubectlWaitBudget.js +19 -0
  1489. package/Utils/CronScheduleText.js +21 -13
  1490. package/Utils/Dashboard/ClockWidgetFormat.js +20 -3
  1491. package/Utils/Dashboard/Components/DashboardChartComponent.js +7 -1
  1492. package/Utils/Dashboard/Components/DashboardDataSourceChartComponent.js +12 -1
  1493. package/Utils/Dashboard/Components/DashboardDataSourceGaugeComponent.js +3 -1
  1494. package/Utils/Dashboard/Components/DashboardDataSourceTableComponent.js +3 -1
  1495. package/Utils/Dashboard/Components/DashboardDataSourceValueComponent.js +3 -1
  1496. package/Utils/Dashboard/DashboardWidgetLink.d.mts +8 -0
  1497. package/Utils/Dashboard/DashboardWidgetLink.d.ts +8 -0
  1498. package/Utils/Dashboard/DashboardWidgetLink.js +80 -0
  1499. package/Utils/Dashboard/DashboardWidgetLink.mjs +7 -0
  1500. package/Utils/DataSecurity/CustomDataTypeDetector.d.mts +2 -3
  1501. package/Utils/DataSecurity/CustomDataTypeDetector.d.ts +2 -3
  1502. package/Utils/DataSecurity/CustomDataTypeDetector.js +5 -10
  1503. package/Utils/DataSecurity/Detectors/ContactDetectors.d.mts +3 -0
  1504. package/Utils/DataSecurity/Detectors/ContactDetectors.d.ts +3 -0
  1505. package/Utils/DataSecurity/Detectors/ContactDetectors.js +70 -38
  1506. package/Utils/DataSecurity/Detectors/ContactDetectors.mjs +3 -0
  1507. package/Utils/DataSecurity/OccurrenceExcerpt.d.mts +4 -0
  1508. package/Utils/DataSecurity/OccurrenceExcerpt.d.ts +4 -0
  1509. package/Utils/DataSecurity/OccurrenceExcerpt.js +30 -0
  1510. package/Utils/DataSecurity/OccurrenceExcerpt.mjs +1 -0
  1511. package/Utils/DataSource/DataSourceQueryText.d.mts +10 -0
  1512. package/Utils/DataSource/DataSourceQueryText.d.ts +10 -0
  1513. package/Utils/DataSource/DataSourceQueryText.js +287 -23
  1514. package/Utils/DataSource/DataSourceTableRows.d.mts +7 -0
  1515. package/Utils/DataSource/DataSourceTableRows.d.ts +7 -0
  1516. package/Utils/DataSource/DataSourceTableRows.js +64 -0
  1517. package/Utils/DataSource/DataSourceTableRows.mjs +3 -0
  1518. package/Utils/DataSource/DataSourceWidgetQueries.d.mts +21 -0
  1519. package/Utils/DataSource/DataSourceWidgetQueries.d.ts +21 -0
  1520. package/Utils/DataSource/DataSourceWidgetQueries.js +145 -0
  1521. package/Utils/DataSource/DataSourceWidgetQueries.mjs +3 -0
  1522. package/Utils/DeveloperDocs/AiAssistantExamples.d.mts +2 -1
  1523. package/Utils/DeveloperDocs/AiAssistantExamples.d.ts +2 -1
  1524. package/Utils/DeveloperDocs/AiAssistantExamples.js +38 -1
  1525. package/Utils/DeveloperDocs/AiAssistantExamples.mjs +1 -0
  1526. package/Utils/DeveloperDocs/CliCommands.d.mts +15 -0
  1527. package/Utils/DeveloperDocs/CliCommands.d.ts +15 -0
  1528. package/Utils/DeveloperDocs/CliCommands.js +62 -0
  1529. package/Utils/DeveloperDocs/CliCommands.mjs +3 -0
  1530. package/Utils/DeveloperDocs/CliExamples.d.mts +6 -0
  1531. package/Utils/DeveloperDocs/CliExamples.d.ts +6 -0
  1532. package/Utils/DeveloperDocs/CliExamples.js +43 -0
  1533. package/Utils/DeveloperDocs/CliExamples.mjs +2 -0
  1534. package/Utils/DeveloperDocs/ClientResourceNames.js +6 -1
  1535. package/Utils/DeveloperDocs/CrossplaneConfig.d.mts +74 -0
  1536. package/Utils/DeveloperDocs/CrossplaneConfig.d.ts +74 -0
  1537. package/Utils/DeveloperDocs/CrossplaneConfig.js +846 -0
  1538. package/Utils/DeveloperDocs/CrossplaneConfig.mjs +21 -0
  1539. package/Utils/DeveloperDocs/CrossplaneNames.d.mts +21 -0
  1540. package/Utils/DeveloperDocs/CrossplaneNames.d.ts +21 -0
  1541. package/Utils/DeveloperDocs/CrossplaneNames.js +334 -0
  1542. package/Utils/DeveloperDocs/CrossplaneNames.mjs +15 -0
  1543. package/Utils/DeveloperDocs/CrossplaneSchema.d.mts +20 -0
  1544. package/Utils/DeveloperDocs/CrossplaneSchema.d.ts +20 -0
  1545. package/Utils/DeveloperDocs/CrossplaneSchema.js +170 -0
  1546. package/Utils/DeveloperDocs/CrossplaneSchema.mjs +9 -0
  1547. package/Utils/DeveloperDocs/DeleteChoices.d.mts +52 -0
  1548. package/Utils/DeveloperDocs/DeleteChoices.d.ts +52 -0
  1549. package/Utils/DeveloperDocs/DeleteChoices.js +332 -0
  1550. package/Utils/DeveloperDocs/DeleteChoices.mjs +12 -0
  1551. package/Utils/DeveloperDocs/ExampleBuilder.d.mts +1 -1
  1552. package/Utils/DeveloperDocs/ExampleBuilder.d.ts +1 -1
  1553. package/Utils/DeveloperDocs/ExampleBuilder.js +9 -9
  1554. package/Utils/DeveloperDocs/ListOrderFacts.d.mts +27 -0
  1555. package/Utils/DeveloperDocs/ListOrderFacts.d.ts +27 -0
  1556. package/Utils/DeveloperDocs/ListOrderFacts.js +106 -0
  1557. package/Utils/DeveloperDocs/ListOrderFacts.mjs +4 -0
  1558. package/Utils/DeveloperDocs/PageLookups.d.mts +2 -1
  1559. package/Utils/DeveloperDocs/PageLookups.d.ts +2 -1
  1560. package/Utils/DeveloperDocs/PageLookups.js +19 -5
  1561. package/Utils/DeveloperDocs/ResourceProfiles.js +92 -10
  1562. package/Utils/DeveloperDocs/TerraformConfig.d.mts +26 -3
  1563. package/Utils/DeveloperDocs/TerraformConfig.d.ts +26 -3
  1564. package/Utils/DeveloperDocs/TerraformConfig.js +70 -34
  1565. package/Utils/DeveloperDocs/TerraformConfig.mjs +1 -0
  1566. package/Utils/DeveloperDocs/TerraformSchema.d.mts +12 -1
  1567. package/Utils/DeveloperDocs/TerraformSchema.d.ts +12 -1
  1568. package/Utils/DeveloperDocs/TerraformSchema.js +80 -39
  1569. package/Utils/DeveloperDocs/TerraformSchema.mjs +2 -0
  1570. package/Utils/DeveloperDocs/Yaml.d.mts +50 -0
  1571. package/Utils/DeveloperDocs/Yaml.d.ts +50 -0
  1572. package/Utils/DeveloperDocs/Yaml.js +410 -0
  1573. package/Utils/DeveloperDocs/Yaml.mjs +7 -0
  1574. package/Utils/GuidedSetup/OnCallPolicyRecords.d.mts +36 -0
  1575. package/Utils/GuidedSetup/OnCallPolicyRecords.d.ts +36 -0
  1576. package/Utils/GuidedSetup/OnCallPolicyRecords.js +101 -1
  1577. package/Utils/GuidedSetup/OnCallPolicyRecords.mjs +8 -0
  1578. package/Utils/GuidedSetup/ServiceMonitorRecords.d.mts +58 -0
  1579. package/Utils/GuidedSetup/ServiceMonitorRecords.d.ts +58 -0
  1580. package/Utils/GuidedSetup/ServiceMonitorRecords.js +163 -0
  1581. package/Utils/GuidedSetup/ServiceMonitorRecords.mjs +11 -0
  1582. package/Utils/GuidedSetup/WebsiteMonitorRecords.d.mts +12 -0
  1583. package/Utils/GuidedSetup/WebsiteMonitorRecords.d.ts +12 -0
  1584. package/Utils/GuidedSetup/WebsiteMonitorRecords.js +33 -1
  1585. package/Utils/GuidedSetup/WebsiteMonitorRecords.mjs +3 -0
  1586. package/Utils/Host/AndroidAgentLogSessions.d.mts +64 -0
  1587. package/Utils/Host/AndroidAgentLogSessions.d.ts +64 -0
  1588. package/Utils/Host/AndroidAgentLogSessions.js +252 -0
  1589. package/Utils/Host/AndroidAgentLogSessions.mjs +9 -0
  1590. package/Utils/Host/AndroidAgentRedactor.d.mts +11 -0
  1591. package/Utils/Host/AndroidAgentRedactor.d.ts +11 -0
  1592. package/Utils/Host/AndroidAgentRedactor.js +129 -0
  1593. package/Utils/Host/AndroidAgentRedactor.mjs +8 -0
  1594. package/Utils/Host/HostLogSessionFile.d.mts +56 -0
  1595. package/Utils/Host/HostLogSessionFile.d.ts +56 -0
  1596. package/Utils/Host/HostLogSessionFile.js +245 -0
  1597. package/Utils/Host/HostLogSessionFile.mjs +6 -0
  1598. package/Utils/Host/HostLogSessionNote.d.mts +11 -0
  1599. package/Utils/Host/HostLogSessionNote.d.ts +11 -0
  1600. package/Utils/Host/HostLogSessionNote.js +80 -0
  1601. package/Utils/Host/HostLogSessionNote.mjs +4 -0
  1602. package/Utils/Host/HostOperatingSystem.d.mts +29 -0
  1603. package/Utils/Host/HostOperatingSystem.d.ts +29 -0
  1604. package/Utils/Host/HostOperatingSystem.js +95 -0
  1605. package/Utils/Host/HostOperatingSystem.mjs +4 -0
  1606. package/Utils/HostCollector/HostCollectorConfigResolution.d.mts +1 -1
  1607. package/Utils/HostCollector/HostCollectorConfigResolution.d.ts +1 -1
  1608. package/Utils/HostCollector/HostCollectorConfigResolution.js +12 -2
  1609. package/Utils/HostCollector/HostCollectorDefaultConfig.d.mts +5 -0
  1610. package/Utils/HostCollector/HostCollectorDefaultConfig.d.ts +5 -0
  1611. package/Utils/HostCollector/HostCollectorDefaultConfig.js +90 -4
  1612. package/Utils/HostCollector/HostCollectorDefaultConfig.mjs +5 -0
  1613. package/Utils/HostCollector/HostCollectorJournaldOperators.d.mts +14 -0
  1614. package/Utils/HostCollector/HostCollectorJournaldOperators.d.ts +14 -0
  1615. package/Utils/HostCollector/HostCollectorJournaldOperators.js +313 -0
  1616. package/Utils/HostCollector/HostCollectorJournaldOperators.mjs +5 -0
  1617. package/Utils/Incident/IncidentSlaStart.d.mts +31 -0
  1618. package/Utils/Incident/IncidentSlaStart.d.ts +31 -0
  1619. package/Utils/Incident/IncidentSlaStart.js +99 -0
  1620. package/Utils/Incident/IncidentSlaStart.mjs +3 -0
  1621. package/Utils/Incident/WhoOpenedItRootCause.js +15 -18
  1622. package/Utils/Inventory/InventoryAssetDetails.d.mts +4 -3
  1623. package/Utils/Inventory/InventoryAssetDetails.d.ts +4 -3
  1624. package/Utils/Inventory/InventoryAssetDetails.js +16 -29
  1625. package/Utils/IpCanonicalUtil.d.mts +2 -0
  1626. package/Utils/IpCanonicalUtil.d.ts +2 -0
  1627. package/Utils/IpCanonicalUtil.js +35 -0
  1628. package/Utils/JsonElementCount.d.mts +54 -0
  1629. package/Utils/JsonElementCount.d.ts +54 -0
  1630. package/Utils/JsonElementCount.js +322 -0
  1631. package/Utils/JsonElementCount.mjs +6 -0
  1632. package/Utils/ListOrder.d.mts +71 -11
  1633. package/Utils/ListOrder.d.ts +71 -11
  1634. package/Utils/ListOrder.js +135 -20
  1635. package/Utils/ListOrder.mjs +3 -1
  1636. package/Utils/LogQL/LogQLAst.d.mts +125 -0
  1637. package/Utils/LogQL/LogQLAst.d.ts +125 -0
  1638. package/Utils/LogQL/LogQLAst.js +83 -0
  1639. package/Utils/LogQL/LogQLAst.mjs +9 -0
  1640. package/Utils/LogQL/LogQLEngine.d.mts +114 -0
  1641. package/Utils/LogQL/LogQLEngine.d.ts +114 -0
  1642. package/Utils/LogQL/LogQLEngine.js +716 -0
  1643. package/Utils/LogQL/LogQLEngine.mjs +16 -0
  1644. package/Utils/LogQL/LogQLLabels.d.mts +31 -0
  1645. package/Utils/LogQL/LogQLLabels.d.ts +31 -0
  1646. package/Utils/LogQL/LogQLLabels.js +131 -0
  1647. package/Utils/LogQL/LogQLLabels.mjs +11 -0
  1648. package/Utils/LogQL/LogQLParser.d.mts +2 -0
  1649. package/Utils/LogQL/LogQLParser.d.ts +2 -0
  1650. package/Utils/LogQL/LogQLParser.js +1207 -0
  1651. package/Utils/LogQL/LogQLParser.mjs +2 -0
  1652. package/Utils/LogQL/LogQLPipeline.d.mts +28 -0
  1653. package/Utils/LogQL/LogQLPipeline.d.ts +28 -0
  1654. package/Utils/LogQL/LogQLPipeline.js +441 -0
  1655. package/Utils/LogQL/LogQLPipeline.mjs +7 -0
  1656. package/Utils/LogQL/LogQLValues.d.mts +2 -0
  1657. package/Utils/LogQL/LogQLValues.d.ts +2 -0
  1658. package/Utils/LogQL/LogQLValues.js +101 -0
  1659. package/Utils/LogQL/LogQLValues.mjs +3 -0
  1660. package/Utils/Markdown/FeedLead.js +2 -0
  1661. package/Utils/Metrics/MetricFormulaEvaluator.d.mts +13 -8
  1662. package/Utils/Metrics/MetricFormulaEvaluator.d.ts +13 -8
  1663. package/Utils/Metrics/MetricFormulaEvaluator.js +139 -3
  1664. package/Utils/Metrics/MetricLatestReading.d.mts +15 -0
  1665. package/Utils/Metrics/MetricLatestReading.d.ts +15 -0
  1666. package/Utils/Metrics/MetricLatestReading.js +49 -0
  1667. package/Utils/Metrics/MetricLatestReading.mjs +2 -0
  1668. package/Utils/Metrics/MetricQueryOverlay.d.mts +44 -0
  1669. package/Utils/Metrics/MetricQueryOverlay.d.ts +44 -0
  1670. package/Utils/Metrics/MetricQueryOverlay.js +293 -0
  1671. package/Utils/Metrics/MetricQueryOverlay.mjs +4 -0
  1672. package/Utils/Metrics/MetricSeriesFingerprint.d.mts +6 -0
  1673. package/Utils/Metrics/MetricSeriesFingerprint.d.ts +6 -0
  1674. package/Utils/Metrics/MetricSeriesFingerprint.js +81 -0
  1675. package/Utils/Metrics/RetiredCloudMetricChartMoves.d.mts +12 -0
  1676. package/Utils/Metrics/RetiredCloudMetricChartMoves.d.ts +12 -0
  1677. package/Utils/Metrics/RetiredCloudMetricChartMoves.js +354 -0
  1678. package/Utils/Metrics/RetiredCloudMetricChartMoves.mjs +6 -0
  1679. package/Utils/Metrics/RetiredCloudMetricMoves.d.mts +127 -0
  1680. package/Utils/Metrics/RetiredCloudMetricMoves.d.ts +127 -0
  1681. package/Utils/Metrics/RetiredCloudMetricMoves.js +687 -0
  1682. package/Utils/Metrics/RetiredCloudMetricMoves.mjs +27 -0
  1683. package/Utils/Metrics/RetiredCloudMetricReads.d.mts +13 -0
  1684. package/Utils/Metrics/RetiredCloudMetricReads.d.ts +13 -0
  1685. package/Utils/Metrics/RetiredCloudMetricReads.js +176 -0
  1686. package/Utils/Metrics/RetiredCloudMetricReads.mjs +12 -0
  1687. package/Utils/ModelImportExport.js +66 -44
  1688. package/Utils/Monitor/DeviceMonitorDuplicates.js +22 -3
  1689. package/Utils/Monitor/DeviceMonitorTemplateUtil.d.mts +11 -1
  1690. package/Utils/Monitor/DeviceMonitorTemplateUtil.d.ts +11 -1
  1691. package/Utils/Monitor/DeviceMonitorTemplateUtil.js +173 -44
  1692. package/Utils/Monitor/DeviceMonitorTemplateUtil.mjs +5 -0
  1693. package/Utils/Monitor/DeviceUrlTarget.d.mts +35 -0
  1694. package/Utils/Monitor/DeviceUrlTarget.d.ts +35 -0
  1695. package/Utils/Monitor/DeviceUrlTarget.js +254 -0
  1696. package/Utils/Monitor/DeviceUrlTarget.mjs +9 -0
  1697. package/Utils/Monitor/MetricTelemetrySnapshot.d.mts +1 -0
  1698. package/Utils/Monitor/MetricTelemetrySnapshot.d.ts +1 -0
  1699. package/Utils/Monitor/MetricTelemetrySnapshot.js +16 -0
  1700. package/Utils/Monitor/MonitorLogSummaryUtil.js +18 -0
  1701. package/Utils/Monitor/MonitorSecretReferences.d.mts +21 -0
  1702. package/Utils/Monitor/MonitorSecretReferences.d.ts +21 -0
  1703. package/Utils/Monitor/MonitorSecretReferences.js +162 -0
  1704. package/Utils/Monitor/MonitorSecretReferences.mjs +10 -0
  1705. package/Utils/Monitor/MonitorSecretTotp.d.mts +40 -0
  1706. package/Utils/Monitor/MonitorSecretTotp.d.ts +40 -0
  1707. package/Utils/Monitor/MonitorSecretTotp.js +313 -0
  1708. package/Utils/Monitor/MonitorSecretTotp.mjs +15 -0
  1709. package/Utils/Monitor/MonitorStatusReason.d.mts +44 -0
  1710. package/Utils/Monitor/MonitorStatusReason.d.ts +44 -0
  1711. package/Utils/Monitor/MonitorStatusReason.js +446 -0
  1712. package/Utils/Monitor/MonitorStatusReason.mjs +12 -0
  1713. package/Utils/Monitor/MonitorStepMetricQueries.d.mts +1 -0
  1714. package/Utils/Monitor/MonitorStepMetricQueries.d.ts +1 -0
  1715. package/Utils/Monitor/MonitorStepMetricQueries.js +24 -4
  1716. package/Utils/Monitor/MonitorUptimeSummaryUtil.js +14 -13
  1717. package/Utils/Monitor/ProbeFailureCauses.d.mts +3 -1
  1718. package/Utils/Monitor/ProbeFailureCauses.d.ts +3 -1
  1719. package/Utils/Monitor/ProbeFailureCauses.js +14 -3
  1720. package/Utils/Monitor/RecordRootCauseWording.d.mts +12 -0
  1721. package/Utils/Monitor/RecordRootCauseWording.d.ts +12 -0
  1722. package/Utils/Monitor/RecordRootCauseWording.js +53 -0
  1723. package/Utils/Monitor/RecordRootCauseWording.mjs +2 -0
  1724. package/Utils/Monitor/StateChangeFeedCause.d.mts +8 -0
  1725. package/Utils/Monitor/StateChangeFeedCause.d.ts +8 -0
  1726. package/Utils/Monitor/StateChangeFeedCause.js +74 -0
  1727. package/Utils/Monitor/StateChangeFeedCause.mjs +3 -0
  1728. package/Utils/Monitor/StatusChangeCauseWording.d.mts +15 -0
  1729. package/Utils/Monitor/StatusChangeCauseWording.d.ts +15 -0
  1730. package/Utils/Monitor/StatusChangeCauseWording.js +149 -0
  1731. package/Utils/Monitor/StatusChangeCauseWording.mjs +5 -0
  1732. package/Utils/Monitor/StatusChangeNotes.d.mts +54 -0
  1733. package/Utils/Monitor/StatusChangeNotes.d.ts +54 -0
  1734. package/Utils/Monitor/StatusChangeNotes.js +734 -0
  1735. package/Utils/Monitor/StatusChangeNotes.mjs +39 -0
  1736. package/Utils/Monitor/StoredCheckEvidence.d.mts +6 -0
  1737. package/Utils/Monitor/StoredCheckEvidence.d.ts +6 -0
  1738. package/Utils/Monitor/StoredCheckEvidence.js +9 -1
  1739. package/Utils/Monitor/StoredCheckEvidence.mjs +1 -0
  1740. package/Utils/NetworkDevice/DeviceAddressScope.d.mts +94 -0
  1741. package/Utils/NetworkDevice/DeviceAddressScope.d.ts +94 -0
  1742. package/Utils/NetworkDevice/DeviceAddressScope.js +371 -0
  1743. package/Utils/NetworkDevice/DeviceAddressScope.mjs +16 -0
  1744. package/Utils/NetworkDevice/MonitorCheckedHost.d.mts +9 -0
  1745. package/Utils/NetworkDevice/MonitorCheckedHost.d.ts +9 -0
  1746. package/Utils/NetworkDevice/MonitorCheckedHost.js +114 -0
  1747. package/Utils/NetworkDevice/MonitorCheckedHost.mjs +4 -0
  1748. package/Utils/NetworkDevice/MonitorTieAfterProbes.d.mts +21 -0
  1749. package/Utils/NetworkDevice/MonitorTieAfterProbes.d.ts +21 -0
  1750. package/Utils/NetworkDevice/MonitorTieAfterProbes.js +33 -0
  1751. package/Utils/NetworkDevice/MonitorTieAfterProbes.mjs +2 -0
  1752. package/Utils/NetworkDevice/Naming/DeviceNamingPlanner.js +8 -6
  1753. package/Utils/NetworkDevice/UntiedDeviceMonitor.d.mts +26 -0
  1754. package/Utils/NetworkDevice/UntiedDeviceMonitor.d.ts +26 -0
  1755. package/Utils/NetworkDevice/UntiedDeviceMonitor.js +137 -0
  1756. package/Utils/NetworkDevice/UntiedDeviceMonitor.mjs +4 -0
  1757. package/Utils/NetworkDiscovery/DiscoveredHostRegistration.d.mts +15 -0
  1758. package/Utils/NetworkDiscovery/DiscoveredHostRegistration.d.ts +15 -0
  1759. package/Utils/NetworkDiscovery/DiscoveredHostRegistration.js +118 -0
  1760. package/Utils/NetworkDiscovery/DiscoveredHostRegistration.mjs +6 -0
  1761. package/Utils/NetworkSite/CidrMatchUtil.js +10 -4
  1762. package/Utils/NetworkTraffic/NetworkAddressBlock.d.mts +2 -0
  1763. package/Utils/NetworkTraffic/NetworkAddressBlock.d.ts +2 -0
  1764. package/Utils/NetworkTraffic/NetworkAddressBlock.js +25 -0
  1765. package/Utils/ObservabilityImport/AlertImportCommon.d.mts +33 -0
  1766. package/Utils/ObservabilityImport/AlertImportCommon.d.ts +33 -0
  1767. package/Utils/ObservabilityImport/AlertImportCommon.js +198 -0
  1768. package/Utils/ObservabilityImport/AlertImportCommon.mjs +12 -0
  1769. package/Utils/ObservabilityImport/AlertImportMonitorBuilder.d.mts +20 -0
  1770. package/Utils/ObservabilityImport/AlertImportMonitorBuilder.d.ts +20 -0
  1771. package/Utils/ObservabilityImport/AlertImportMonitorBuilder.js +138 -0
  1772. package/Utils/ObservabilityImport/AlertImportMonitorBuilder.mjs +3 -0
  1773. package/Utils/ObservabilityImport/Datadog/DatadogDashboard.d.mts +18 -0
  1774. package/Utils/ObservabilityImport/Datadog/DatadogDashboard.d.ts +18 -0
  1775. package/Utils/ObservabilityImport/Datadog/DatadogDashboard.js +657 -0
  1776. package/Utils/ObservabilityImport/Datadog/DatadogDashboard.mjs +12 -0
  1777. package/Utils/ObservabilityImport/Datadog/DatadogMonitors.d.mts +23 -0
  1778. package/Utils/ObservabilityImport/Datadog/DatadogMonitors.d.ts +23 -0
  1779. package/Utils/ObservabilityImport/Datadog/DatadogMonitors.js +369 -0
  1780. package/Utils/ObservabilityImport/Datadog/DatadogMonitors.mjs +13 -0
  1781. package/Utils/ObservabilityImport/Datadog/DatadogPromQL.d.mts +42 -0
  1782. package/Utils/ObservabilityImport/Datadog/DatadogPromQL.d.ts +42 -0
  1783. package/Utils/ObservabilityImport/Datadog/DatadogPromQL.js +818 -0
  1784. package/Utils/ObservabilityImport/Datadog/DatadogPromQL.mjs +24 -0
  1785. package/Utils/ObservabilityImport/Datadog/DatadogQueryParser.d.mts +88 -0
  1786. package/Utils/ObservabilityImport/Datadog/DatadogQueryParser.d.ts +88 -0
  1787. package/Utils/ObservabilityImport/Datadog/DatadogQueryParser.js +584 -0
  1788. package/Utils/ObservabilityImport/Datadog/DatadogQueryParser.mjs +7 -0
  1789. package/Utils/ObservabilityImport/Grafana/GrafanaAlertRules.d.mts +14 -0
  1790. package/Utils/ObservabilityImport/Grafana/GrafanaAlertRules.d.ts +14 -0
  1791. package/Utils/ObservabilityImport/Grafana/GrafanaAlertRules.js +431 -0
  1792. package/Utils/ObservabilityImport/Grafana/GrafanaAlertRules.mjs +11 -0
  1793. package/Utils/ObservabilityImport/Grafana/GrafanaDashboard.d.mts +42 -0
  1794. package/Utils/ObservabilityImport/Grafana/GrafanaDashboard.d.ts +42 -0
  1795. package/Utils/ObservabilityImport/Grafana/GrafanaDashboard.js +1349 -0
  1796. package/Utils/ObservabilityImport/Grafana/GrafanaDashboard.mjs +39 -0
  1797. package/Utils/ObservabilityImport/Grafana/GrafanaLoki.d.mts +29 -0
  1798. package/Utils/ObservabilityImport/Grafana/GrafanaLoki.d.ts +29 -0
  1799. package/Utils/ObservabilityImport/Grafana/GrafanaLoki.js +361 -0
  1800. package/Utils/ObservabilityImport/Grafana/GrafanaLoki.mjs +13 -0
  1801. package/Utils/ObservabilityImport/Grafana/GrafanaUnits.d.mts +31 -0
  1802. package/Utils/ObservabilityImport/Grafana/GrafanaUnits.d.ts +31 -0
  1803. package/Utils/ObservabilityImport/Grafana/GrafanaUnits.js +340 -0
  1804. package/Utils/ObservabilityImport/Grafana/GrafanaUnits.mjs +10 -0
  1805. package/Utils/ObservabilityImport/ImportLayout.d.mts +20 -0
  1806. package/Utils/ObservabilityImport/ImportLayout.d.ts +20 -0
  1807. package/Utils/ObservabilityImport/ImportLayout.js +71 -0
  1808. package/Utils/ObservabilityImport/ImportLayout.mjs +6 -0
  1809. package/Utils/ObservabilityImport/ImportSource.d.mts +37 -0
  1810. package/Utils/ObservabilityImport/ImportSource.d.ts +37 -0
  1811. package/Utils/ObservabilityImport/ImportSource.js +285 -0
  1812. package/Utils/ObservabilityImport/ImportSource.mjs +16 -0
  1813. package/Utils/ObservabilityImport/ImportValues.d.mts +11 -0
  1814. package/Utils/ObservabilityImport/ImportValues.d.ts +11 -0
  1815. package/Utils/ObservabilityImport/ImportValues.js +102 -0
  1816. package/Utils/ObservabilityImport/ImportValues.mjs +11 -0
  1817. package/Utils/ObservabilityImport/ImportWidgets.d.mts +48 -0
  1818. package/Utils/ObservabilityImport/ImportWidgets.d.ts +48 -0
  1819. package/Utils/ObservabilityImport/ImportWidgets.js +164 -0
  1820. package/Utils/ObservabilityImport/ImportWidgets.mjs +9 -0
  1821. package/Utils/ObservabilityImport/ObservabilityImport.d.mts +16 -0
  1822. package/Utils/ObservabilityImport/ObservabilityImport.d.ts +16 -0
  1823. package/Utils/ObservabilityImport/ObservabilityImport.js +102 -0
  1824. package/Utils/ObservabilityImport/ObservabilityImport.mjs +6 -0
  1825. package/Utils/ObservabilityImport/PromQLImportQuery.d.mts +31 -0
  1826. package/Utils/ObservabilityImport/PromQLImportQuery.d.ts +31 -0
  1827. package/Utils/ObservabilityImport/PromQLImportQuery.js +263 -0
  1828. package/Utils/ObservabilityImport/PromQLImportQuery.mjs +13 -0
  1829. package/Utils/ObservabilityImport/Prometheus/PrometheusRules.d.mts +12 -0
  1830. package/Utils/ObservabilityImport/Prometheus/PrometheusRules.d.ts +12 -0
  1831. package/Utils/ObservabilityImport/Prometheus/PrometheusRules.js +239 -0
  1832. package/Utils/ObservabilityImport/Prometheus/PrometheusRules.mjs +9 -0
  1833. package/Utils/PrivateKeyBlocks.d.mts +6 -0
  1834. package/Utils/PrivateKeyBlocks.d.ts +6 -0
  1835. package/Utils/PrivateKeyBlocks.js +24 -9
  1836. package/Utils/PrivateKeyBlocks.mjs +1 -0
  1837. package/Utils/Project/ProjectBilling.js +1 -0
  1838. package/Utils/PromQL/PromQLGrafanaMacros.d.mts +25 -0
  1839. package/Utils/PromQL/PromQLGrafanaMacros.d.ts +25 -0
  1840. package/Utils/PromQL/PromQLGrafanaMacros.js +116 -0
  1841. package/Utils/PromQL/PromQLGrafanaMacros.mjs +8 -0
  1842. package/Utils/PromQL/PromQLMetricNames.d.mts +47 -1
  1843. package/Utils/PromQL/PromQLMetricNames.d.ts +47 -1
  1844. package/Utils/PromQL/PromQLMetricNames.js +390 -16
  1845. package/Utils/PromQL/PromQLMetricNames.mjs +11 -0
  1846. package/Utils/PromQL/PromQLMonitorExpression.d.mts +21 -0
  1847. package/Utils/PromQL/PromQLMonitorExpression.d.ts +21 -0
  1848. package/Utils/PromQL/PromQLMonitorExpression.js +168 -0
  1849. package/Utils/PromQL/PromQLMonitorExpression.mjs +7 -0
  1850. package/Utils/PromQL/PromQLMonitorSeries.d.mts +9 -0
  1851. package/Utils/PromQL/PromQLMonitorSeries.d.ts +9 -0
  1852. package/Utils/PromQL/PromQLMonitorSeries.js +87 -0
  1853. package/Utils/PromQL/PromQLMonitorSeries.mjs +5 -0
  1854. package/Utils/Proxmox/ProxmoxGuestPowerTask.d.mts +46 -0
  1855. package/Utils/Proxmox/ProxmoxGuestPowerTask.d.ts +46 -0
  1856. package/Utils/Proxmox/ProxmoxGuestPowerTask.js +240 -0
  1857. package/Utils/Proxmox/ProxmoxGuestPowerTask.mjs +17 -0
  1858. package/Utils/Rum/SessionIdentity.d.mts +0 -8
  1859. package/Utils/Rum/SessionIdentity.d.ts +0 -8
  1860. package/Utils/Rum/SessionIdentity.js +4 -105
  1861. package/Utils/Rum/SessionReplayFrustrationSettingsValidation.js +15 -1
  1862. package/Utils/Rum/SessionReplayIngestBounds.d.mts +10 -0
  1863. package/Utils/Rum/SessionReplayIngestBounds.d.ts +10 -0
  1864. package/Utils/Rum/SessionReplayIngestBounds.js +121 -0
  1865. package/Utils/Rum/SessionReplayIngestBounds.mjs +2 -0
  1866. package/Utils/Rum/SessionReplayPolicyValidation.d.mts +9 -0
  1867. package/Utils/Rum/SessionReplayPolicyValidation.d.ts +9 -0
  1868. package/Utils/Rum/SessionReplayPolicyValidation.js +97 -0
  1869. package/Utils/Rum/SessionReplayPolicyValidation.mjs +6 -0
  1870. package/Utils/Schema/ModelSchema.d.mts +7 -0
  1871. package/Utils/Schema/ModelSchema.d.ts +7 -0
  1872. package/Utils/Schema/ModelSchema.js +148 -20
  1873. package/Utils/SecurityCase/SecurityCaseMarkdown.d.mts +1 -0
  1874. package/Utils/SecurityCase/SecurityCaseMarkdown.d.ts +1 -0
  1875. package/Utils/SecurityCase/SecurityCaseMarkdown.js +5 -2
  1876. package/Utils/SecurityCase/SecurityConnectionMatch.d.mts +16 -1
  1877. package/Utils/SecurityCase/SecurityConnectionMatch.d.ts +16 -1
  1878. package/Utils/SecurityCase/SecurityConnectionMatch.js +255 -20
  1879. package/Utils/SecurityCase/SecurityConnectionMatch.mjs +9 -0
  1880. package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.d.mts +3 -0
  1881. package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.d.ts +3 -0
  1882. package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.js +104 -4
  1883. package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.mjs +3 -0
  1884. package/Utils/SecurityEvent/LogParsers/AzureResourceLogParser.d.mts +50 -0
  1885. package/Utils/SecurityEvent/LogParsers/AzureResourceLogParser.d.ts +50 -0
  1886. package/Utils/SecurityEvent/LogParsers/AzureResourceLogParser.js +1121 -0
  1887. package/Utils/SecurityEvent/LogParsers/AzureResourceLogParser.mjs +29 -0
  1888. package/Utils/SecurityEvent/LogParsers/CloudAuditResources.d.mts +94 -0
  1889. package/Utils/SecurityEvent/LogParsers/CloudAuditResources.d.ts +94 -0
  1890. package/Utils/SecurityEvent/LogParsers/CloudAuditResources.js +1376 -0
  1891. package/Utils/SecurityEvent/LogParsers/CloudAuditResources.mjs +27 -0
  1892. package/Utils/SecurityEvent/LogParsers/CloudTrailLogParser.js +3 -0
  1893. package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.d.mts +1 -0
  1894. package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.d.ts +1 -0
  1895. package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.js +19 -1
  1896. package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.mjs +1 -0
  1897. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.mts +6 -0
  1898. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.ts +6 -0
  1899. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.js +91 -1
  1900. package/Utils/SecurityEvent/LogParsers/SecurityLogLine.mjs +4 -0
  1901. package/Utils/SecurityEvent/LogParsers/SecurityLogParser.js +21 -1
  1902. package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.d.mts +7 -0
  1903. package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.d.ts +7 -0
  1904. package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.js +146 -15
  1905. package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.mjs +1 -0
  1906. package/Utils/SecurityEvent/NormalizerHelpers.js +15 -2
  1907. package/Utils/SecurityEvent/RequestFollowUp.js +24 -0
  1908. package/Utils/SecurityEvent/ScrubbedAddress.d.mts +71 -0
  1909. package/Utils/SecurityEvent/ScrubbedAddress.d.ts +71 -0
  1910. package/Utils/SecurityEvent/ScrubbedAddress.js +439 -0
  1911. package/Utils/SecurityEvent/ScrubbedAddress.mjs +24 -0
  1912. package/Utils/SecurityEvent/SecurityRecordReading.d.mts +4 -0
  1913. package/Utils/SecurityEvent/SecurityRecordReading.d.ts +4 -0
  1914. package/Utils/SecurityEvent/SecurityRecordReading.js +24 -0
  1915. package/Utils/SecurityEvent/SecurityRecordReading.mjs +2 -0
  1916. package/Utils/SecurityEvent/SecurityTemplateRecords.js +7 -1
  1917. package/Utils/SecurityEvent/TelemetryScan/TraceSignals.d.mts +1 -0
  1918. package/Utils/SecurityEvent/TelemetryScan/TraceSignals.d.ts +1 -0
  1919. package/Utils/SecurityEvent/TelemetryScan/TraceSignals.js +49 -5
  1920. package/Utils/SecurityEvent/TelemetryScan/TraceSignals.mjs +1 -0
  1921. package/Utils/SlicedWork.d.mts +4 -0
  1922. package/Utils/SlicedWork.d.ts +4 -0
  1923. package/Utils/SlicedWork.js +34 -0
  1924. package/Utils/SlicedWork.mjs +2 -0
  1925. package/Utils/Slo/SloHealth.d.mts +5 -0
  1926. package/Utils/Slo/SloHealth.d.ts +5 -0
  1927. package/Utils/Slo/SloHealth.js +80 -1
  1928. package/Utils/Slo/SloHealth.mjs +3 -0
  1929. package/Utils/Slo/SloMetricSli.d.mts +8 -0
  1930. package/Utils/Slo/SloMetricSli.d.ts +8 -0
  1931. package/Utils/Slo/SloMetricSli.js +36 -1
  1932. package/Utils/Slo/SloMetricSli.mjs +5 -0
  1933. package/Utils/StateOrder.d.mts +25 -7
  1934. package/Utils/StateOrder.d.ts +25 -7
  1935. package/Utils/StateOrder.js +33 -19
  1936. package/Utils/StateOrder.mjs +1 -0
  1937. package/Utils/StatusPage/StatusPageUptimeTimezone.d.mts +5 -4
  1938. package/Utils/StatusPage/StatusPageUptimeTimezone.d.ts +5 -4
  1939. package/Utils/StatusPage/StatusPageUptimeTimezone.js +5 -4
  1940. package/Utils/Storage/StorageUsage.d.mts +31 -0
  1941. package/Utils/Storage/StorageUsage.d.ts +31 -0
  1942. package/Utils/Storage/StorageUsage.js +179 -0
  1943. package/Utils/Storage/StorageUsage.mjs +10 -0
  1944. package/Utils/Suggestions/CodeFixSuggestion.js +3 -2
  1945. package/Utils/Telemetry/AppleCrashMatch.d.mts +42 -0
  1946. package/Utils/Telemetry/AppleCrashMatch.d.ts +42 -0
  1947. package/Utils/Telemetry/AppleCrashMatch.js +205 -0
  1948. package/Utils/Telemetry/AppleCrashMatch.mjs +11 -0
  1949. package/Utils/Telemetry/AppleCrashReport.d.mts +47 -0
  1950. package/Utils/Telemetry/AppleCrashReport.d.ts +47 -0
  1951. package/Utils/Telemetry/AppleCrashReport.js +760 -0
  1952. package/Utils/Telemetry/AppleCrashReport.mjs +9 -0
  1953. package/Utils/Telemetry/AppleSymbolicate.d.mts +14 -0
  1954. package/Utils/Telemetry/AppleSymbolicate.d.ts +14 -0
  1955. package/Utils/Telemetry/AppleSymbolicate.js +102 -0
  1956. package/Utils/Telemetry/AppleSymbolicate.mjs +5 -0
  1957. package/Utils/Telemetry/AppleSymbols.d.mts +31 -0
  1958. package/Utils/Telemetry/AppleSymbols.d.ts +31 -0
  1959. package/Utils/Telemetry/AppleSymbols.js +200 -0
  1960. package/Utils/Telemetry/AppleSymbols.mjs +9 -0
  1961. package/Utils/Telemetry/CrossSignalScope.d.mts +6 -1
  1962. package/Utils/Telemetry/CrossSignalScope.d.ts +6 -1
  1963. package/Utils/Telemetry/CrossSignalScope.js +19 -1
  1964. package/Utils/Telemetry/CrossSignalScope.mjs +2 -0
  1965. package/Utils/Telemetry/MetricKitCallStack.d.mts +33 -0
  1966. package/Utils/Telemetry/MetricKitCallStack.d.ts +33 -0
  1967. package/Utils/Telemetry/MetricKitCallStack.js +253 -0
  1968. package/Utils/Telemetry/MetricKitCallStack.mjs +4 -0
  1969. package/Utils/Telemetry/MobileAppFaults.d.mts +14 -1
  1970. package/Utils/Telemetry/MobileAppFaults.d.ts +14 -1
  1971. package/Utils/Telemetry/MobileAppFaults.js +149 -15
  1972. package/Utils/Telemetry/MobileAppFaults.mjs +12 -0
  1973. package/Utils/Telemetry/OtlpAnyValue.d.mts +5 -0
  1974. package/Utils/Telemetry/OtlpAnyValue.d.ts +5 -0
  1975. package/Utils/Telemetry/OtlpAnyValue.js +86 -0
  1976. package/Utils/Telemetry/OtlpAnyValue.mjs +5 -0
  1977. package/Utils/Telemetry/OtlpRecordCount.d.mts +4 -0
  1978. package/Utils/Telemetry/OtlpRecordCount.d.ts +4 -0
  1979. package/Utils/Telemetry/OtlpRecordCount.js +82 -0
  1980. package/Utils/Telemetry/OtlpRecordCount.mjs +5 -0
  1981. package/Utils/Telemetry/ScrubIpAddress.d.mts +10 -0
  1982. package/Utils/Telemetry/ScrubIpAddress.d.ts +10 -0
  1983. package/Utils/Telemetry/ScrubIpAddress.js +116 -0
  1984. package/Utils/Telemetry/ScrubIpAddress.mjs +4 -0
  1985. package/Utils/Telemetry/SwiftDemangle.d.mts +2 -0
  1986. package/Utils/Telemetry/SwiftDemangle.d.ts +2 -0
  1987. package/Utils/Telemetry/SwiftDemangle.js +3479 -0
  1988. package/Utils/Telemetry/SwiftDemangle.mjs +3 -0
  1989. package/Utils/Telemetry/TelemetryIngestionBudgetMetricType.d.mts +4 -0
  1990. package/Utils/Telemetry/TelemetryIngestionBudgetMetricType.d.ts +4 -0
  1991. package/Utils/Telemetry/TelemetryIngestionBudgetMetricType.js +7 -2
  1992. package/Utils/Telemetry/TelemetryIngestionBudgetMetricType.mjs +4 -0
  1993. package/Utils/Telemetry/TelemetryUsageMetricType.d.mts +18 -0
  1994. package/Utils/Telemetry/TelemetryUsageMetricType.d.ts +18 -0
  1995. package/Utils/Telemetry/TelemetryUsageMetricType.js +107 -0
  1996. package/Utils/Telemetry/TelemetryUsageMetricType.mjs +9 -0
  1997. package/Utils/Totp/TotpParameters.d.mts +25 -0
  1998. package/Utils/Totp/TotpParameters.d.ts +25 -0
  1999. package/Utils/Totp/TotpParameters.js +99 -0
  2000. package/Utils/Totp/TotpParameters.mjs +14 -0
  2001. package/Utils/Totp/TotpSecret.d.mts +42 -0
  2002. package/Utils/Totp/TotpSecret.d.ts +42 -0
  2003. package/Utils/Totp/TotpSecret.js +327 -0
  2004. package/Utils/Totp/TotpSecret.mjs +21 -0
  2005. package/Utils/Uptime/DayUptimeGraphUtil.js +1 -1
  2006. package/Utils/Uptime/UptimeDayGrid.d.mts +38 -0
  2007. package/Utils/Uptime/UptimeDayGrid.d.ts +38 -0
  2008. package/Utils/Uptime/UptimeDayGrid.js +148 -0
  2009. package/Utils/Uptime/UptimeDayGrid.mjs +2 -0
  2010. package/Utils/ValueFormatter.d.mts +4 -0
  2011. package/Utils/ValueFormatter.d.ts +4 -0
  2012. package/Utils/ValueFormatter.js +436 -42
  2013. package/Utils/VersionUtil.d.mts +1 -0
  2014. package/Utils/VersionUtil.d.ts +1 -0
  2015. package/Utils/VersionUtil.js +26 -0
  2016. package/package.json +3 -2
@@ -0,0 +1,3479 @@
1
+ "use strict";
2
+ /*
3
+ * SWIFT SYMBOL NAMES, AS A PERSON READS THEM (#9922).
4
+ *
5
+ * An iOS crash frame symbolicated against a dSYM names a raw Swift symbol:
6
+ * "$s5MyApp18CartViewControllerC8checkoutyyF". This turns it into what
7
+ * `swift-demangle --simplified` prints: "CartViewController.checkout()".
8
+ *
9
+ * A port of the Swift compiler's own demangler (lib/Demangling/Demangler.cpp,
10
+ * a postfix stack machine with substitutions) and of its node printer
11
+ * (lib/Demangling/NodePrinter.cpp) with DemangleOptions::
12
+ * SimplifiedUIDemangleOptions() fixed in. Only the part of the grammar app
13
+ * code produces is ported, operator for operator: anything else - and any
14
+ * input the real demangler would print as something other than one code
15
+ * entity - gives null, so the caller shows the raw name. A wrong name is
16
+ * worse than none.
17
+ *
18
+ * Display only: grouping keys on the raw name. Pure, no imports, bounded
19
+ * work, and never throws.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.demangleSwiftSymbol = demangleSwiftSymbol;
23
+ exports.toAppleSymbolDisplayName = toAppleSymbolDisplayName;
24
+ // The longest symbol read; a longer one is shown as it is.
25
+ const MAX_SYMBOL_LENGTH = 4096;
26
+ // Bounds on the work one symbol may cause.
27
+ const MAX_NODES = 50000;
28
+ const MAX_STACK = 4096;
29
+ const MAX_IDENTIFIER_LENGTH = 4096;
30
+ const MAX_OUTPUT_LENGTH = 4096;
31
+ const MAX_PRINT_STEPS = 50000;
32
+ // NodePrinter::MaxDepth: deeper trees print "<<too complex>>" there.
33
+ const MAX_PRINT_DEPTH = 768;
34
+ // SubstitutionMerging::MaxRepeatCount.
35
+ const MAX_REPEAT_COUNT = 2048;
36
+ // Demangler::MaxNumWords.
37
+ const MAX_NUM_WORDS = 26;
38
+ // MAX_SPECIALIZATION_PASS.
39
+ const MAX_SPECIALIZATION_PASS = 10;
40
+ const INT_MAX = 2147483647;
41
+ const STDLIB_NAME = "Swift";
42
+ const MANGLING_MODULE_OBJC = "__C";
43
+ const MANGLING_MODULE_CLANG_IMPORTER = "__C_Synthesized";
44
+ // The prefixes read: Swift 5 and later ($s), and Swift 4.2 / 5.0 ($S).
45
+ const MANGLING_PREFIXES = ["_$s", "$s", "_$S", "$S"];
46
+ // What a symbol table's name may hold; swift-demangle reads the same.
47
+ const MANGLED_NAME_PATTERN = /^[A-Za-z0-9_$.]+$/;
48
+ /*
49
+ * Thrown where the input uses something this port does not read, or where
50
+ * the real demangler or printer would not give one clean name. Caught at
51
+ * the top: the symbol then reads as null.
52
+ */
53
+ class NotReadable extends Error {
54
+ }
55
+ function fail() {
56
+ throw new NotReadable();
57
+ }
58
+ function isDigit(c) {
59
+ return c.length === 1 && c >= "0" && c <= "9";
60
+ }
61
+ function isLowerLetter(c) {
62
+ return c.length === 1 && c >= "a" && c <= "z";
63
+ }
64
+ function isUpperLetter(c) {
65
+ return c.length === 1 && c >= "A" && c <= "Z";
66
+ }
67
+ function isLetter(c) {
68
+ return isLowerLetter(c) || isUpperLetter(c);
69
+ }
70
+ // ManglingUtils.h: where a substitution word starts and ends.
71
+ function isWordStart(c) {
72
+ return c !== "" && !isDigit(c) && c !== "_";
73
+ }
74
+ function isWordEnd(c, previous) {
75
+ if (c === "_" || c === "") {
76
+ return true;
77
+ }
78
+ return !isUpperLetter(previous) && isUpperLetter(c);
79
+ }
80
+ const CONTEXT_KINDS = new Set([
81
+ "Allocator",
82
+ "Class",
83
+ "Constructor",
84
+ "Deallocator",
85
+ "DefaultArgumentInitializer",
86
+ "Destructor",
87
+ "DidSet",
88
+ "Enum",
89
+ "ExplicitClosure",
90
+ "Extension",
91
+ "Function",
92
+ "Getter",
93
+ "GlobalGetter",
94
+ "IVarInitializer",
95
+ "IVarDestroyer",
96
+ "ImplicitClosure",
97
+ "Initializer",
98
+ "InitAccessor",
99
+ "IsolatedDeallocator",
100
+ "MaterializeForSet",
101
+ "ModifyAccessor",
102
+ "Module",
103
+ "NativeOwningAddressor",
104
+ "NativeOwningMutableAddressor",
105
+ "NativePinningAddressor",
106
+ "NativePinningMutableAddressor",
107
+ "OwningAddressor",
108
+ "OwningMutableAddressor",
109
+ "PropertyWrapperBackingInitializer",
110
+ "PropertyWrappedFieldInitAccessor",
111
+ "PropertyWrapperInitFromProjectedValue",
112
+ "Protocol",
113
+ "ReadAccessor",
114
+ "Setter",
115
+ "Static",
116
+ "Structure",
117
+ "Subscript",
118
+ "TypeAlias",
119
+ "UnsafeAddressor",
120
+ "UnsafeMutableAddressor",
121
+ "Variable",
122
+ "WillSet",
123
+ "OpaqueReturnTypeOf",
124
+ ]);
125
+ const DECL_NAME_KINDS = new Set([
126
+ "Identifier",
127
+ "LocalDeclName",
128
+ "PrivateDeclName",
129
+ "PrefixOperator",
130
+ "PostfixOperator",
131
+ "InfixOperator",
132
+ ]);
133
+ const ANY_GENERIC_KINDS = new Set([
134
+ "Structure",
135
+ "Class",
136
+ "Enum",
137
+ "Protocol",
138
+ "TypeAlias",
139
+ ]);
140
+ const REQUIREMENT_KINDS = new Set([
141
+ "DependentGenericSameTypeRequirement",
142
+ "DependentGenericLayoutRequirement",
143
+ "DependentGenericConformanceRequirement",
144
+ "DependentGenericInverseConformanceRequirement",
145
+ ]);
146
+ const FUNCTION_ATTR_KINDS = new Set([
147
+ "FunctionSignatureSpecialization",
148
+ "GenericSpecialization",
149
+ "GenericSpecializationPrespecialized",
150
+ "InlinedGenericFunction",
151
+ "GenericSpecializationNotReAbstracted",
152
+ "GenericPartialSpecialization",
153
+ "GenericPartialSpecializationNotReAbstracted",
154
+ "GenericSpecializationInResilienceDomain",
155
+ "ObjCAttribute",
156
+ "NonObjCAttribute",
157
+ "DynamicAttribute",
158
+ "DirectMethodReferenceAttribute",
159
+ "PartialApplyForwarder",
160
+ "PartialApplyObjCForwarder",
161
+ "MergedFunction",
162
+ "AsyncAwaitResumePartialFunction",
163
+ "AsyncSuspendResumePartialFunction",
164
+ ]);
165
+ // Demangle::nodeConsumesGenericArgs.
166
+ const NON_CONSUMING_GENERIC_ARGS_KINDS = new Set([
167
+ "Variable",
168
+ "Subscript",
169
+ "ImplicitClosure",
170
+ "ExplicitClosure",
171
+ "DefaultArgumentInitializer",
172
+ "Initializer",
173
+ "PropertyWrapperBackingInitializer",
174
+ "PropertyWrappedFieldInitAccessor",
175
+ "PropertyWrapperInitFromProjectedValue",
176
+ "Static",
177
+ ]);
178
+ // The declarations a symbol names: functions, accessors, closures, ...
179
+ const DECLARATION_KINDS = new Set([
180
+ "Function",
181
+ "BoundGenericFunction",
182
+ "Variable",
183
+ "Subscript",
184
+ "Allocator",
185
+ "Constructor",
186
+ "Destructor",
187
+ "Deallocator",
188
+ "IsolatedDeallocator",
189
+ "IVarDestroyer",
190
+ "IVarInitializer",
191
+ "ExplicitClosure",
192
+ "ImplicitClosure",
193
+ "Initializer",
194
+ "DefaultArgumentInitializer",
195
+ "PropertyWrapperBackingInitializer",
196
+ "PropertyWrappedFieldInitAccessor",
197
+ "PropertyWrapperInitFromProjectedValue",
198
+ "Getter",
199
+ "Setter",
200
+ "MaterializeForSet",
201
+ "WillSet",
202
+ "DidSet",
203
+ "ReadAccessor",
204
+ "ModifyAccessor",
205
+ "InitAccessor",
206
+ "GlobalGetter",
207
+ "OwningMutableAddressor",
208
+ "NativeOwningMutableAddressor",
209
+ "NativePinningMutableAddressor",
210
+ "UnsafeMutableAddressor",
211
+ "OwningAddressor",
212
+ "NativeOwningAddressor",
213
+ "NativePinningAddressor",
214
+ "UnsafeAddressor",
215
+ ]);
216
+ // The compiler-made functions a symbol may name, each about a type.
217
+ const GENERATED_CODE_KINDS = new Set([
218
+ "MethodLookupFunction",
219
+ "BaseWitnessTableAccessor",
220
+ "TypeMetadataAccessFunction",
221
+ "TypeMetadataCompletionFunction",
222
+ "TypeMetadataInstantiationFunction",
223
+ "ValueWitness",
224
+ "GlobalVariableOnceFunction",
225
+ "LazyProtocolWitnessTableAccessor",
226
+ "OutlinedCopy",
227
+ "OutlinedConsume",
228
+ "OutlinedRetain",
229
+ "OutlinedRelease",
230
+ "OutlinedInitializeWithTake",
231
+ "OutlinedInitializeWithTakeNoValueWitness",
232
+ "OutlinedInitializeWithCopy",
233
+ "OutlinedInitializeWithCopyNoValueWitness",
234
+ "OutlinedAssignWithTake",
235
+ "OutlinedAssignWithTakeNoValueWitness",
236
+ "OutlinedAssignWithCopy",
237
+ "OutlinedAssignWithCopyNoValueWitness",
238
+ "OutlinedDestroy",
239
+ "OutlinedDestroyNoValueWitness",
240
+ ]);
241
+ // StandardTypesMangling.def: S + letter, and Sc + letter for _Concurrency.
242
+ const STANDARD_TYPES = {
243
+ A: ["Structure", "AutoreleasingUnsafeMutablePointer"],
244
+ a: ["Structure", "Array"],
245
+ b: ["Structure", "Bool"],
246
+ D: ["Structure", "Dictionary"],
247
+ d: ["Structure", "Double"],
248
+ f: ["Structure", "Float"],
249
+ h: ["Structure", "Set"],
250
+ I: ["Structure", "DefaultIndices"],
251
+ i: ["Structure", "Int"],
252
+ J: ["Structure", "Character"],
253
+ N: ["Structure", "ClosedRange"],
254
+ n: ["Structure", "Range"],
255
+ O: ["Structure", "ObjectIdentifier"],
256
+ P: ["Structure", "UnsafePointer"],
257
+ p: ["Structure", "UnsafeMutablePointer"],
258
+ R: ["Structure", "UnsafeBufferPointer"],
259
+ r: ["Structure", "UnsafeMutableBufferPointer"],
260
+ S: ["Structure", "String"],
261
+ s: ["Structure", "Substring"],
262
+ u: ["Structure", "UInt"],
263
+ V: ["Structure", "UnsafeRawPointer"],
264
+ v: ["Structure", "UnsafeMutableRawPointer"],
265
+ W: ["Structure", "UnsafeRawBufferPointer"],
266
+ w: ["Structure", "UnsafeMutableRawBufferPointer"],
267
+ q: ["Enum", "Optional"],
268
+ B: ["Protocol", "BinaryFloatingPoint"],
269
+ E: ["Protocol", "Encodable"],
270
+ e: ["Protocol", "Decodable"],
271
+ F: ["Protocol", "FloatingPoint"],
272
+ G: ["Protocol", "RandomNumberGenerator"],
273
+ H: ["Protocol", "Hashable"],
274
+ j: ["Protocol", "Numeric"],
275
+ K: ["Protocol", "BidirectionalCollection"],
276
+ k: ["Protocol", "RandomAccessCollection"],
277
+ L: ["Protocol", "Comparable"],
278
+ l: ["Protocol", "Collection"],
279
+ M: ["Protocol", "MutableCollection"],
280
+ m: ["Protocol", "RangeReplaceableCollection"],
281
+ Q: ["Protocol", "Equatable"],
282
+ T: ["Protocol", "Sequence"],
283
+ t: ["Protocol", "IteratorProtocol"],
284
+ U: ["Protocol", "UnsignedInteger"],
285
+ X: ["Protocol", "RangeExpression"],
286
+ x: ["Protocol", "Strideable"],
287
+ Y: ["Protocol", "RawRepresentable"],
288
+ y: ["Protocol", "StringProtocol"],
289
+ Z: ["Protocol", "SignedInteger"],
290
+ z: ["Protocol", "BinaryInteger"],
291
+ };
292
+ const CONCURRENCY_TYPES = {
293
+ A: ["Protocol", "Actor"],
294
+ C: ["Structure", "CheckedContinuation"],
295
+ c: ["Structure", "UnsafeContinuation"],
296
+ E: ["Structure", "CancellationError"],
297
+ e: ["Structure", "UnownedSerialExecutor"],
298
+ F: ["Protocol", "Executor"],
299
+ f: ["Protocol", "SerialExecutor"],
300
+ G: ["Structure", "TaskGroup"],
301
+ g: ["Structure", "ThrowingTaskGroup"],
302
+ h: ["Protocol", "TaskExecutor"],
303
+ I: ["Protocol", "AsyncIteratorProtocol"],
304
+ i: ["Protocol", "AsyncSequence"],
305
+ J: ["Structure", "UnownedJob"],
306
+ M: ["Class", "MainActor"],
307
+ P: ["Structure", "TaskPriority"],
308
+ S: ["Structure", "AsyncStream"],
309
+ s: ["Structure", "AsyncThrowingStream"],
310
+ T: ["Structure", "Task"],
311
+ t: ["Structure", "UnsafeCurrentTask"],
312
+ };
313
+ // Builtin types named by one letter (Strings.h).
314
+ const BUILTIN_TYPE_NAMES = {
315
+ A: "Builtin.ImplicitActor",
316
+ b: "Builtin.BridgeObject",
317
+ B: "Builtin.UnsafeValueBuffer",
318
+ e: "Builtin.Executor",
319
+ I: "Builtin.IntLiteral",
320
+ O: "Builtin.UnknownObject",
321
+ o: "Builtin.NativeObject",
322
+ p: "Builtin.RawPointer",
323
+ j: "Builtin.Job",
324
+ D: "Builtin.DefaultActorStorage",
325
+ d: "Builtin.NonDefaultDistributedActorStorage",
326
+ c: "Builtin.RawUnsafeContinuation",
327
+ t: "Builtin.SILToken",
328
+ w: "Builtin.Word",
329
+ P: "Builtin.PackIndex",
330
+ };
331
+ // ValueWitnessMangling.def, with the names NodePrinter prints.
332
+ const VALUE_WITNESSES = {
333
+ al: "allocateBuffer",
334
+ ca: "assignWithCopy",
335
+ ta: "assignWithTake",
336
+ de: "deallocateBuffer",
337
+ xx: "destroy",
338
+ XX: "destroyBuffer",
339
+ Xx: "destroyArray",
340
+ CP: "initializeBufferWithCopyOfBuffer",
341
+ Cp: "initializeBufferWithCopy",
342
+ cp: "initializeWithCopy",
343
+ Tk: "initializeBufferWithTake",
344
+ tk: "initializeWithTake",
345
+ pr: "projectBuffer",
346
+ TK: "initializeBufferWithTakeOfBuffer",
347
+ Cc: "initializeArrayWithCopy",
348
+ Tt: "initializeArrayWithTakeFrontToBack",
349
+ tT: "initializeArrayWithTakeBackToFront",
350
+ xs: "storeExtraInhabitant",
351
+ xg: "getExtraInhabitantIndex",
352
+ ug: "getEnumTag",
353
+ up: "destructiveProjectEnumData",
354
+ ui: "destructiveInjectEnumTag",
355
+ et: "getEnumTagSinglePayload",
356
+ st: "storeEnumTagSinglePayload",
357
+ };
358
+ // FunctionSigSpecializationParamKind.
359
+ const SPEC_CONSTANT_PROP_FUNCTION = 0;
360
+ const SPEC_CONSTANT_PROP_GLOBAL = 1;
361
+ const SPEC_CONSTANT_PROP_INTEGER = 2;
362
+ const SPEC_CONSTANT_PROP_FLOAT = 3;
363
+ const SPEC_CONSTANT_PROP_STRING = 4;
364
+ const SPEC_CLOSURE_PROP = 5;
365
+ const SPEC_BOX_TO_VALUE = 6;
366
+ const SPEC_BOX_TO_STACK = 7;
367
+ const SPEC_INOUT_TO_OUT = 8;
368
+ const SPEC_CONSTANT_PROP_KEY_PATH = 9;
369
+ const SPEC_CONSTANT_PROP_STRUCT = 10;
370
+ const SPEC_CLOSURE_PROP_PREVIOUS_ARG = 11;
371
+ const SPEC_DEAD = 1 << 6;
372
+ const SPEC_OWNED_TO_GUARANTEED = 1 << 7;
373
+ const SPEC_SROA = 1 << 8;
374
+ const SPEC_GUARANTEED_TO_OWNED = 1 << 9;
375
+ const SPEC_EXISTENTIAL_TO_GENERIC = 1 << 10;
376
+ // Demangler.cpp, the subset app code produces.
377
+ class Demangler {
378
+ constructor(text) {
379
+ this.pos = 0;
380
+ this.nodeStack = [];
381
+ this.substitutions = [];
382
+ this.words = [];
383
+ this.nodeCount = 0;
384
+ this.text = text;
385
+ }
386
+ // Demangler::demangleSymbol, for a name whose prefix is already known.
387
+ demangleSymbol(prefixLength) {
388
+ this.pos = prefixLength;
389
+ while (this.pos < this.text.length) {
390
+ const node = this.demangleOperator();
391
+ if (!node) {
392
+ fail();
393
+ }
394
+ this.pushNode(node);
395
+ }
396
+ const topLevel = this.createNode("Global");
397
+ // An unmangled suffix (".resume.0", ".cold.1") is not printed.
398
+ this.popNodeKind("Suffix");
399
+ let parent = topLevel;
400
+ for (;;) {
401
+ const attribute = this.popNodeIf((kind) => {
402
+ return FUNCTION_ATTR_KINDS.has(kind);
403
+ });
404
+ if (!attribute) {
405
+ break;
406
+ }
407
+ parent.children.push(attribute);
408
+ if (attribute.kind === "PartialApplyForwarder" ||
409
+ attribute.kind === "PartialApplyObjCForwarder") {
410
+ parent = attribute;
411
+ }
412
+ }
413
+ /*
414
+ * The real demangler adds every node left on the stack, and prints them
415
+ * one after another. One code entity is a name; anything else is not.
416
+ */
417
+ if (this.nodeStack.length !== 1) {
418
+ fail();
419
+ }
420
+ const entity = this.nodeStack[0];
421
+ if (!isCodeSymbol(entity)) {
422
+ fail();
423
+ }
424
+ parent.children.push(entity);
425
+ return topLevel;
426
+ }
427
+ // Reading the text.
428
+ peekChar() {
429
+ return this.pos < this.text.length ? this.text[this.pos] : "";
430
+ }
431
+ nextChar() {
432
+ if (this.pos >= this.text.length) {
433
+ return "";
434
+ }
435
+ const c = this.text[this.pos];
436
+ this.pos++;
437
+ return c;
438
+ }
439
+ nextIf(c) {
440
+ if (!this.text.startsWith(c, this.pos)) {
441
+ return false;
442
+ }
443
+ this.pos += c.length;
444
+ return true;
445
+ }
446
+ /*
447
+ * Demangler::pushBack. After a read past the end it would step back onto
448
+ * the last character and read it again, which is not a mangling.
449
+ */
450
+ pushBack(c) {
451
+ if (c === "" || this.pos <= 0) {
452
+ fail();
453
+ }
454
+ this.pos--;
455
+ }
456
+ // Nodes.
457
+ createNode(kind, payload) {
458
+ this.nodeCount++;
459
+ if (this.nodeCount > MAX_NODES) {
460
+ fail();
461
+ }
462
+ return {
463
+ kind: kind,
464
+ text: payload && payload.text !== undefined ? payload.text : null,
465
+ index: payload && payload.index !== undefined ? payload.index : null,
466
+ children: [],
467
+ };
468
+ }
469
+ createTextNode(kind, text) {
470
+ return this.createNode(kind, { text: text });
471
+ }
472
+ createIndexNode(kind, index) {
473
+ return this.createNode(kind, { index: index });
474
+ }
475
+ createWithChild(kind, child) {
476
+ if (!child) {
477
+ return null;
478
+ }
479
+ const node = this.createNode(kind);
480
+ node.children.push(child);
481
+ return node;
482
+ }
483
+ createWithChildren(kind, ...children) {
484
+ for (const child of children) {
485
+ if (!child) {
486
+ return null;
487
+ }
488
+ }
489
+ const node = this.createNode(kind);
490
+ for (const child of children) {
491
+ node.children.push(child);
492
+ }
493
+ return node;
494
+ }
495
+ createType(child) {
496
+ return this.createWithChild("Type", child);
497
+ }
498
+ addChild(parent, child) {
499
+ if (!parent || !child) {
500
+ return null;
501
+ }
502
+ parent.children.push(child);
503
+ return parent;
504
+ }
505
+ changeKind(node, kind) {
506
+ if (!node) {
507
+ return null;
508
+ }
509
+ const changed = this.createNode(kind);
510
+ changed.text = node.text;
511
+ changed.index = node.index;
512
+ changed.children = node.children.slice();
513
+ return changed;
514
+ }
515
+ reverseChildren(node, startingAt) {
516
+ const tail = node.children.splice(startingAt).reverse();
517
+ node.children.push(...tail);
518
+ }
519
+ // The node stack.
520
+ pushNode(node) {
521
+ if (this.nodeStack.length >= MAX_STACK) {
522
+ fail();
523
+ }
524
+ this.nodeStack.push(node);
525
+ }
526
+ popNode() {
527
+ return this.nodeStack.pop() || null;
528
+ }
529
+ popNodeKind(kind) {
530
+ const top = this.nodeStack[this.nodeStack.length - 1];
531
+ if (!top || top.kind !== kind) {
532
+ return null;
533
+ }
534
+ return this.popNode();
535
+ }
536
+ popNodeIf(predicate) {
537
+ const top = this.nodeStack[this.nodeStack.length - 1];
538
+ if (!top || !predicate(top.kind)) {
539
+ return null;
540
+ }
541
+ return this.popNode();
542
+ }
543
+ addSubstitution(node) {
544
+ if (node) {
545
+ this.substitutions.push(node);
546
+ }
547
+ }
548
+ // Numbers.
549
+ demangleNatural() {
550
+ if (!isDigit(this.peekChar())) {
551
+ return -1000;
552
+ }
553
+ let num = 0;
554
+ for (;;) {
555
+ const c = this.peekChar();
556
+ if (!isDigit(c)) {
557
+ return num;
558
+ }
559
+ num = 10 * num + (c.charCodeAt(0) - 48);
560
+ if (num > INT_MAX) {
561
+ return -1000;
562
+ }
563
+ this.nextChar();
564
+ }
565
+ }
566
+ demangleIndex() {
567
+ if (this.nextIf("_")) {
568
+ return 0;
569
+ }
570
+ const num = this.demangleNatural();
571
+ if (num >= 0 && num < INT_MAX && this.nextIf("_")) {
572
+ return num + 1;
573
+ }
574
+ return -1000;
575
+ }
576
+ demangleIndexAsNode() {
577
+ const index = this.demangleIndex();
578
+ if (index >= 0) {
579
+ return this.createIndexNode("Number", index);
580
+ }
581
+ return null;
582
+ }
583
+ // Demangler::demangleOperator.
584
+ demangleOperator() {
585
+ const c = this.nextChar();
586
+ switch (c) {
587
+ case "A":
588
+ return this.demangleMultiSubstitutions();
589
+ case "B":
590
+ return this.demangleBuiltinType();
591
+ case "C":
592
+ return this.demangleAnyGenericType("Class");
593
+ case "E":
594
+ return this.demangleExtensionContext();
595
+ case "F":
596
+ return this.demanglePlainFunction();
597
+ case "G":
598
+ return this.demangleBoundGenericType();
599
+ case "K":
600
+ return this.createNode("ThrowsAnnotation");
601
+ case "L":
602
+ return this.demangleLocalIdentifier();
603
+ case "M":
604
+ return this.demangleMetatype();
605
+ case "O":
606
+ return this.demangleAnyGenericType("Enum");
607
+ case "P":
608
+ return this.demangleAnyGenericType("Protocol");
609
+ case "Q":
610
+ return this.demangleArchetype();
611
+ case "R":
612
+ return this.demangleGenericRequirement();
613
+ case "S":
614
+ return this.demangleStandardSubstitution();
615
+ case "T":
616
+ return this.demangleThunkOrSpecialization();
617
+ case "V":
618
+ return this.demangleAnyGenericType("Structure");
619
+ case "W":
620
+ return this.demangleWitness();
621
+ case "X":
622
+ return this.demangleSpecialType();
623
+ case "Y":
624
+ return this.demangleTypeAnnotation();
625
+ case "Z":
626
+ return this.createWithChild("Static", this.popNodeIf((kind) => {
627
+ return isEntity(kind);
628
+ }));
629
+ case "a":
630
+ return this.demangleAnyGenericType("TypeAlias");
631
+ case "c":
632
+ return this.popFunctionType("FunctionType");
633
+ case "d":
634
+ return this.createNode("VariadicMarker");
635
+ case "f":
636
+ return this.demangleFunctionEntity();
637
+ case "h":
638
+ return this.createType(this.createWithChild("Shared", this.popTypeAndGetChild()));
639
+ case "i":
640
+ return this.demangleSubscript();
641
+ case "l":
642
+ return this.demangleGenericSignature(false);
643
+ case "m":
644
+ return this.createType(this.createWithChild("Metatype", this.popNodeKind("Type")));
645
+ case "n":
646
+ return this.createType(this.createWithChild("Owned", this.popTypeAndGetChild()));
647
+ case "o":
648
+ return this.demangleOperatorIdentifier();
649
+ case "p":
650
+ return this.createType(this.demangleProtocolList());
651
+ case "q":
652
+ return this.createType(this.demangleGenericParamIndex());
653
+ case "r":
654
+ return this.demangleGenericSignature(true);
655
+ case "s":
656
+ return this.createTextNode("Module", STDLIB_NAME);
657
+ case "t":
658
+ return this.popTuple();
659
+ case "u":
660
+ return this.demangleGenericType();
661
+ case "v":
662
+ return this.demangleAccessor(this.demangleEntity("Variable"));
663
+ case "w":
664
+ return this.demangleValueWitness();
665
+ case "x":
666
+ return this.createType(this.getDependentGenericParamType(0, 0));
667
+ case "y":
668
+ return this.createNode("EmptyList");
669
+ case "z":
670
+ return this.createType(this.createWithChild("InOut", this.popTypeAndGetChild()));
671
+ case "_":
672
+ return this.createNode("FirstElementMarker");
673
+ case ".":
674
+ this.pushBack(c);
675
+ return this.createSuffix();
676
+ default:
677
+ if (!isDigit(c)) {
678
+ // D, H, I, N, g, $ and the symbolic references: not read here.
679
+ return fail();
680
+ }
681
+ this.pushBack(c);
682
+ return this.demangleIdentifier();
683
+ }
684
+ }
685
+ createSuffix() {
686
+ const suffix = this.text.slice(this.pos);
687
+ this.pos = this.text.length;
688
+ return this.createTextNode("Suffix", suffix);
689
+ }
690
+ // Substitutions.
691
+ demangleMultiSubstitutions() {
692
+ let repeatCount = -1;
693
+ for (;;) {
694
+ const c = this.nextChar();
695
+ if (c === "") {
696
+ return null;
697
+ }
698
+ if (isLowerLetter(c)) {
699
+ const node = this.pushMultiSubstitutions(repeatCount, c.charCodeAt(0) - 97);
700
+ if (!node) {
701
+ return null;
702
+ }
703
+ this.pushNode(node);
704
+ repeatCount = -1;
705
+ continue;
706
+ }
707
+ if (isUpperLetter(c)) {
708
+ return this.pushMultiSubstitutions(repeatCount, c.charCodeAt(0) - 65);
709
+ }
710
+ if (c === "_") {
711
+ const index = repeatCount + 27;
712
+ if (index >= this.substitutions.length) {
713
+ return null;
714
+ }
715
+ return this.substitutions[index] || null;
716
+ }
717
+ this.pushBack(c);
718
+ repeatCount = this.demangleNatural();
719
+ if (repeatCount < 0) {
720
+ return null;
721
+ }
722
+ }
723
+ }
724
+ pushMultiSubstitutions(repeatCount, substitutionIndex) {
725
+ if (substitutionIndex >= this.substitutions.length) {
726
+ return null;
727
+ }
728
+ if (repeatCount > MAX_REPEAT_COUNT) {
729
+ return null;
730
+ }
731
+ const node = this.substitutions[substitutionIndex];
732
+ let count = repeatCount;
733
+ while (count-- > 1) {
734
+ this.pushNode(node);
735
+ }
736
+ return node;
737
+ }
738
+ createSwiftType(kind, name) {
739
+ return this.createType(this.createWithChildren(kind, this.createTextNode("Module", STDLIB_NAME), this.createTextNode("Identifier", name)));
740
+ }
741
+ demangleStandardSubstitution() {
742
+ const c = this.nextChar();
743
+ switch (c) {
744
+ case "o":
745
+ return this.createTextNode("Module", MANGLING_MODULE_OBJC);
746
+ case "C":
747
+ return this.createTextNode("Module", MANGLING_MODULE_CLANG_IMPORTER);
748
+ case "g": {
749
+ const optionalType = this.createType(this.createWithChildren("BoundGenericEnum", this.createSwiftType("Enum", "Optional"), this.createWithChild("TypeList", this.popNodeKind("Type"))));
750
+ this.addSubstitution(optionalType);
751
+ return optionalType;
752
+ }
753
+ default: {
754
+ this.pushBack(c);
755
+ let repeatCount = this.demangleNatural();
756
+ if (repeatCount > MAX_REPEAT_COUNT) {
757
+ return null;
758
+ }
759
+ const secondLevel = this.nextIf("c");
760
+ const node = this.createStandardSubstitution(this.nextChar(), secondLevel);
761
+ if (!node) {
762
+ return null;
763
+ }
764
+ while (repeatCount-- > 1) {
765
+ this.pushNode(node);
766
+ }
767
+ return node;
768
+ }
769
+ }
770
+ }
771
+ createStandardSubstitution(c, secondLevel) {
772
+ const table = secondLevel
773
+ ? CONCURRENCY_TYPES
774
+ : STANDARD_TYPES;
775
+ if (c === "" || !Object.prototype.hasOwnProperty.call(table, c)) {
776
+ return null;
777
+ }
778
+ const entry = table[c];
779
+ return this.createSwiftType(entry[0], entry[1]);
780
+ }
781
+ // Identifiers.
782
+ demangleIdentifier() {
783
+ let hasWordSubstitutions = false;
784
+ const first = this.peekChar();
785
+ if (!isDigit(first)) {
786
+ return null;
787
+ }
788
+ if (first === "0") {
789
+ this.nextChar();
790
+ if (this.peekChar() === "0") {
791
+ // Punycode: not read here.
792
+ return fail();
793
+ }
794
+ hasWordSubstitutions = true;
795
+ }
796
+ let identifier = "";
797
+ do {
798
+ while (hasWordSubstitutions && isLetter(this.peekChar())) {
799
+ const c = this.nextChar();
800
+ let wordIndex = 0;
801
+ if (isLowerLetter(c)) {
802
+ wordIndex = c.charCodeAt(0) - 97;
803
+ }
804
+ else {
805
+ wordIndex = c.charCodeAt(0) - 65;
806
+ hasWordSubstitutions = false;
807
+ }
808
+ if (wordIndex >= this.words.length) {
809
+ return null;
810
+ }
811
+ identifier += this.words[wordIndex];
812
+ if (identifier.length > MAX_IDENTIFIER_LENGTH) {
813
+ return fail();
814
+ }
815
+ }
816
+ if (this.nextIf("0")) {
817
+ break;
818
+ }
819
+ const numChars = this.demangleNatural();
820
+ if (numChars <= 0) {
821
+ return null;
822
+ }
823
+ if (this.pos + numChars > this.text.length) {
824
+ return null;
825
+ }
826
+ const slice = this.text.slice(this.pos, this.pos + numChars);
827
+ identifier += slice;
828
+ if (identifier.length > MAX_IDENTIFIER_LENGTH) {
829
+ return fail();
830
+ }
831
+ // The words a later identifier may refer to, as the mangler found them.
832
+ let wordStart = -1;
833
+ for (let index = 0; index <= slice.length; index++) {
834
+ const c = index < slice.length ? slice[index] : "";
835
+ if (wordStart >= 0 && isWordEnd(c, slice[index - 1])) {
836
+ if (index - wordStart >= 2 && this.words.length < MAX_NUM_WORDS) {
837
+ this.words.push(slice.slice(wordStart, index));
838
+ }
839
+ wordStart = -1;
840
+ }
841
+ if (wordStart < 0 && isWordStart(c)) {
842
+ wordStart = index;
843
+ }
844
+ }
845
+ this.pos += numChars;
846
+ } while (hasWordSubstitutions);
847
+ if (identifier === "") {
848
+ return null;
849
+ }
850
+ const node = this.createTextNode("Identifier", identifier);
851
+ this.addSubstitution(node);
852
+ return node;
853
+ }
854
+ demangleOperatorIdentifier() {
855
+ const identifier = this.popNodeKind("Identifier");
856
+ if (!identifier) {
857
+ return null;
858
+ }
859
+ const table = "& @/= > <*!|+?%-~ ^ .";
860
+ let operatorText = "";
861
+ for (const c of identifier.text || "") {
862
+ if (!isLowerLetter(c)) {
863
+ return null;
864
+ }
865
+ const op = table[c.charCodeAt(0) - 97];
866
+ if (op === " ") {
867
+ return null;
868
+ }
869
+ operatorText += op;
870
+ }
871
+ switch (this.nextChar()) {
872
+ case "i":
873
+ return this.createTextNode("InfixOperator", operatorText);
874
+ case "p":
875
+ return this.createTextNode("PrefixOperator", operatorText);
876
+ case "P":
877
+ return this.createTextNode("PostfixOperator", operatorText);
878
+ default:
879
+ return null;
880
+ }
881
+ }
882
+ demangleLocalIdentifier() {
883
+ if (this.nextIf("L")) {
884
+ const discriminator = this.popNodeKind("Identifier");
885
+ const name = this.popNodeIf(isDeclNameKind);
886
+ return this.createWithChildren("PrivateDeclName", discriminator, name);
887
+ }
888
+ if (this.nextIf("l")) {
889
+ const discriminator = this.popNodeKind("Identifier");
890
+ return this.createWithChild("PrivateDeclName", discriminator);
891
+ }
892
+ const c = this.peekChar();
893
+ if ((c >= "a" && c <= "j") || (c >= "A" && c <= "J")) {
894
+ // A related entity of an imported declaration: not read here.
895
+ return fail();
896
+ }
897
+ const discriminator = this.demangleIndexAsNode();
898
+ const name = this.popNodeIf(isDeclNameKind);
899
+ return this.createWithChildren("LocalDeclName", discriminator, name);
900
+ }
901
+ // Contexts.
902
+ popModule() {
903
+ const identifier = this.popNodeKind("Identifier");
904
+ if (identifier) {
905
+ return this.changeKind(identifier, "Module");
906
+ }
907
+ return this.popNodeKind("Module");
908
+ }
909
+ popContext() {
910
+ const module = this.popModule();
911
+ if (module) {
912
+ return module;
913
+ }
914
+ const type = this.popNodeKind("Type");
915
+ if (type) {
916
+ if (type.children.length !== 1) {
917
+ return null;
918
+ }
919
+ const child = type.children[0];
920
+ if (!CONTEXT_KINDS.has(child.kind)) {
921
+ return null;
922
+ }
923
+ return child;
924
+ }
925
+ return this.popNodeIf((kind) => {
926
+ return CONTEXT_KINDS.has(kind);
927
+ });
928
+ }
929
+ popTypeAndGetChild() {
930
+ const type = this.popNodeKind("Type");
931
+ if (!type || type.children.length !== 1) {
932
+ return null;
933
+ }
934
+ return type.children[0];
935
+ }
936
+ popTypeAndGetAnyGeneric() {
937
+ const child = this.popTypeAndGetChild();
938
+ if (child && ANY_GENERIC_KINDS.has(child.kind)) {
939
+ return child;
940
+ }
941
+ return null;
942
+ }
943
+ // Types.
944
+ demangleBuiltinType() {
945
+ let type = null;
946
+ const maxTypeSize = 4096;
947
+ const c = this.nextChar();
948
+ const named = Object.prototype.hasOwnProperty.call(BUILTIN_TYPE_NAMES, c)
949
+ ? BUILTIN_TYPE_NAMES[c]
950
+ : undefined;
951
+ if (named !== undefined) {
952
+ return this.createType(this.createTextNode("BuiltinTypeName", named));
953
+ }
954
+ switch (c) {
955
+ case "f": {
956
+ const size = this.demangleIndex() - 1;
957
+ if (size <= 0 || size > maxTypeSize) {
958
+ return null;
959
+ }
960
+ type = this.createTextNode("BuiltinTypeName", `Builtin.FPIEEE${size}`);
961
+ break;
962
+ }
963
+ case "i": {
964
+ const size = this.demangleIndex() - 1;
965
+ if (size <= 0 || size > maxTypeSize) {
966
+ return null;
967
+ }
968
+ type = this.createTextNode("BuiltinTypeName", `Builtin.Int${size}`);
969
+ break;
970
+ }
971
+ case "v": {
972
+ const elements = this.demangleIndex() - 1;
973
+ if (elements <= 0 || elements > maxTypeSize) {
974
+ return null;
975
+ }
976
+ const elementType = this.popTypeAndGetChild();
977
+ if (!elementType ||
978
+ elementType.kind !== "BuiltinTypeName" ||
979
+ !(elementType.text || "").startsWith("Builtin.")) {
980
+ return null;
981
+ }
982
+ type = this.createTextNode("BuiltinTypeName", `Builtin.Vec${elements}x${(elementType.text || "").slice(8)}`);
983
+ break;
984
+ }
985
+ default:
986
+ // Fixed arrays, borrows and the tuple type: not read here.
987
+ return fail();
988
+ }
989
+ return this.createType(type);
990
+ }
991
+ demangleAnyGenericType(kind) {
992
+ const name = this.popNodeIf(isDeclNameKind);
993
+ const context = this.popContext();
994
+ const type = this.createType(this.createWithChildren(kind, context, name));
995
+ this.addSubstitution(type);
996
+ return type;
997
+ }
998
+ demangleExtensionContext() {
999
+ const genericSignature = this.popNodeKind("DependentGenericSignature");
1000
+ const module = this.popModule();
1001
+ const type = this.popTypeAndGetAnyGeneric();
1002
+ let extension = this.createWithChildren("Extension", module, type);
1003
+ if (genericSignature) {
1004
+ extension = this.addChild(extension, genericSignature);
1005
+ }
1006
+ return extension;
1007
+ }
1008
+ /*
1009
+ * The opaque return type nodes a declaration's type holds are, in the
1010
+ * real demangler, given the declaration's mangled name; it is never
1011
+ * printed, so it is left out here.
1012
+ */
1013
+ demanglePlainFunction() {
1014
+ const genericSignature = this.popNodeKind("DependentGenericSignature");
1015
+ let type = this.popFunctionType("FunctionType");
1016
+ const labelList = this.popFunctionParamLabels(type);
1017
+ if (genericSignature) {
1018
+ type = this.createType(this.createWithChildren("DependentGenericType", genericSignature, type));
1019
+ }
1020
+ const name = this.popNodeIf(isDeclNameKind);
1021
+ const context = this.popContext();
1022
+ return labelList
1023
+ ? this.createWithChildren("Function", context, name, labelList, type)
1024
+ : this.createWithChildren("Function", context, name, type);
1025
+ }
1026
+ popFunctionType(kind) {
1027
+ let functionType = this.createNode(kind);
1028
+ this.addChild(functionType, this.popNodeKind("SendingResultFunctionType"));
1029
+ this.addChild(functionType, this.popNodeIf((nodeKind) => {
1030
+ return (nodeKind === "GlobalActorFunctionType" ||
1031
+ nodeKind === "IsolatedAnyFunctionType" ||
1032
+ nodeKind === "NonIsolatedCallerFunctionType");
1033
+ }));
1034
+ this.addChild(functionType, this.popNodeIf((nodeKind) => {
1035
+ return (nodeKind === "ThrowsAnnotation" ||
1036
+ nodeKind === "TypedThrowsAnnotation");
1037
+ }));
1038
+ this.addChild(functionType, this.popNodeKind("ConcurrentFunctionType"));
1039
+ this.addChild(functionType, this.popNodeKind("AsyncAnnotation"));
1040
+ functionType = this.addChild(functionType, this.popFunctionParams("ArgumentTuple"));
1041
+ functionType = this.addChild(functionType, this.popFunctionParams("ReturnType"));
1042
+ return this.createType(functionType);
1043
+ }
1044
+ popFunctionParams(kind) {
1045
+ let paramsType = null;
1046
+ if (this.popNodeKind("EmptyList")) {
1047
+ paramsType = this.createType(this.createNode("Tuple"));
1048
+ }
1049
+ else {
1050
+ paramsType = this.popNodeKind("Type");
1051
+ }
1052
+ return this.createWithChild(kind, paramsType);
1053
+ }
1054
+ popFunctionParamLabels(type) {
1055
+ var _a, _b, _c, _d, _e, _f;
1056
+ if (this.popNodeKind("EmptyList")) {
1057
+ return this.createNode("LabelList");
1058
+ }
1059
+ if (!type || type.kind !== "Type") {
1060
+ return null;
1061
+ }
1062
+ let functionType = type.children[0];
1063
+ if (functionType && functionType.kind === "DependentGenericType") {
1064
+ functionType = (_a = functionType.children[1]) === null || _a === void 0 ? void 0 : _a.children[0];
1065
+ }
1066
+ if (!functionType ||
1067
+ (functionType.kind !== "FunctionType" &&
1068
+ functionType.kind !== "NoEscapeFunctionType")) {
1069
+ return null;
1070
+ }
1071
+ const skipped = [
1072
+ "SendingResultFunctionType",
1073
+ "GlobalActorFunctionType",
1074
+ "IsolatedAnyFunctionType",
1075
+ "NonIsolatedCallerFunctionType",
1076
+ ];
1077
+ let firstChildIndex = 0;
1078
+ for (const kind of skipped) {
1079
+ if (((_b = functionType.children[firstChildIndex]) === null || _b === void 0 ? void 0 : _b.kind) === kind) {
1080
+ firstChildIndex++;
1081
+ }
1082
+ }
1083
+ const throwsKind = (_c = functionType.children[firstChildIndex]) === null || _c === void 0 ? void 0 : _c.kind;
1084
+ if (throwsKind === "ThrowsAnnotation" ||
1085
+ throwsKind === "TypedThrowsAnnotation") {
1086
+ firstChildIndex++;
1087
+ }
1088
+ if (((_d = functionType.children[firstChildIndex]) === null || _d === void 0 ? void 0 : _d.kind) === "ConcurrentFunctionType") {
1089
+ firstChildIndex++;
1090
+ }
1091
+ if (((_e = functionType.children[firstChildIndex]) === null || _e === void 0 ? void 0 : _e.kind) === "AsyncAnnotation") {
1092
+ firstChildIndex++;
1093
+ }
1094
+ const parameterType = functionType.children[firstChildIndex];
1095
+ if (!parameterType || parameterType.kind !== "ArgumentTuple") {
1096
+ return fail();
1097
+ }
1098
+ const params = (_f = parameterType.children[0]) === null || _f === void 0 ? void 0 : _f.children[0];
1099
+ if (!params) {
1100
+ return fail();
1101
+ }
1102
+ const numParams = params.kind === "Tuple" ? params.children.length : 1;
1103
+ if (numParams === 0) {
1104
+ return null;
1105
+ }
1106
+ const labelList = this.createNode("LabelList");
1107
+ let hasLabels = false;
1108
+ for (let index = 0; index < numParams; index++) {
1109
+ const label = this.popNode();
1110
+ if (!label) {
1111
+ return null;
1112
+ }
1113
+ if (label.kind !== "Identifier" && label.kind !== "FirstElementMarker") {
1114
+ return null;
1115
+ }
1116
+ labelList.children.push(label);
1117
+ hasLabels = hasLabels || label.kind !== "FirstElementMarker";
1118
+ }
1119
+ if (!hasLabels) {
1120
+ return this.createNode("LabelList");
1121
+ }
1122
+ this.reverseChildren(labelList, 0);
1123
+ return labelList;
1124
+ }
1125
+ popTuple() {
1126
+ const root = this.createNode("Tuple");
1127
+ if (!this.popNodeKind("EmptyList")) {
1128
+ let firstElement = false;
1129
+ do {
1130
+ firstElement = this.popNodeKind("FirstElementMarker") !== null;
1131
+ const element = this.createNode("TupleElement");
1132
+ this.addChild(element, this.popNodeKind("VariadicMarker"));
1133
+ const identifier = this.popNodeKind("Identifier");
1134
+ if (identifier) {
1135
+ element.children.push(this.createTextNode("TupleElementName", identifier.text || ""));
1136
+ }
1137
+ const type = this.popNodeKind("Type");
1138
+ if (!type) {
1139
+ return null;
1140
+ }
1141
+ element.children.push(type);
1142
+ root.children.push(element);
1143
+ } while (!firstElement);
1144
+ this.reverseChildren(root, 0);
1145
+ }
1146
+ return this.createType(root);
1147
+ }
1148
+ popTypeList() {
1149
+ const root = this.createNode("TypeList");
1150
+ if (!this.popNodeKind("EmptyList")) {
1151
+ let firstElement = false;
1152
+ do {
1153
+ firstElement = this.popNodeKind("FirstElementMarker") !== null;
1154
+ const type = this.popNodeKind("Type");
1155
+ if (!type) {
1156
+ return null;
1157
+ }
1158
+ root.children.push(type);
1159
+ } while (!firstElement);
1160
+ this.reverseChildren(root, 0);
1161
+ }
1162
+ return root;
1163
+ }
1164
+ popProtocol() {
1165
+ const type = this.popNodeKind("Type");
1166
+ if (type) {
1167
+ if (type.children.length < 1) {
1168
+ return null;
1169
+ }
1170
+ if (!isProtocolNode(type)) {
1171
+ return null;
1172
+ }
1173
+ return type;
1174
+ }
1175
+ const name = this.popNodeIf(isDeclNameKind);
1176
+ const context = this.popContext();
1177
+ return this.createType(this.createWithChildren("Protocol", context, name));
1178
+ }
1179
+ demangleBoundGenerics(typeLists) {
1180
+ for (;;) {
1181
+ const typeList = this.createNode("TypeList");
1182
+ typeLists.push(typeList);
1183
+ for (;;) {
1184
+ const type = this.popNodeKind("Type");
1185
+ if (!type) {
1186
+ break;
1187
+ }
1188
+ typeList.children.push(type);
1189
+ }
1190
+ this.reverseChildren(typeList, 0);
1191
+ if (this.popNodeKind("EmptyList")) {
1192
+ break;
1193
+ }
1194
+ if (!this.popNodeKind("FirstElementMarker")) {
1195
+ return false;
1196
+ }
1197
+ }
1198
+ return true;
1199
+ }
1200
+ demangleBoundGenericType() {
1201
+ const typeLists = [];
1202
+ if (!this.demangleBoundGenerics(typeLists)) {
1203
+ return null;
1204
+ }
1205
+ const nominal = this.popTypeAndGetAnyGeneric();
1206
+ if (!nominal) {
1207
+ return null;
1208
+ }
1209
+ const bound = this.demangleBoundGenericArgs(nominal, typeLists, 0);
1210
+ if (!bound) {
1211
+ return null;
1212
+ }
1213
+ const type = this.createType(bound);
1214
+ this.addSubstitution(type);
1215
+ return type;
1216
+ }
1217
+ demangleBoundGenericArgs(nominalNode, typeLists, typeListIndexStart) {
1218
+ let nominal = nominalNode;
1219
+ let typeListIndex = typeListIndexStart;
1220
+ if (!nominal) {
1221
+ return null;
1222
+ }
1223
+ if (typeListIndex >= typeLists.length) {
1224
+ return null;
1225
+ }
1226
+ if (nominal.children.length === 0) {
1227
+ return null;
1228
+ }
1229
+ const context = nominal.children[0];
1230
+ const consumesGenericArgs = !NON_CONSUMING_GENERIC_ARGS_KINDS.has(nominal.kind);
1231
+ const args = typeLists[typeListIndex];
1232
+ if (consumesGenericArgs) {
1233
+ typeListIndex++;
1234
+ }
1235
+ if (typeListIndex < typeLists.length) {
1236
+ let boundParent = null;
1237
+ if (context.kind === "Extension") {
1238
+ boundParent = this.demangleBoundGenericArgs(context.children[1] || null, typeLists, typeListIndex);
1239
+ boundParent = this.createWithChildren("Extension", context.children[0] || null, boundParent);
1240
+ if (context.children.length === 3) {
1241
+ this.addChild(boundParent, context.children[2] || null);
1242
+ }
1243
+ }
1244
+ else {
1245
+ boundParent = this.demangleBoundGenericArgs(context, typeLists, typeListIndex);
1246
+ }
1247
+ const newNominal = this.createWithChild(nominal.kind, boundParent);
1248
+ if (!newNominal) {
1249
+ return null;
1250
+ }
1251
+ for (let index = 1; index < nominal.children.length; index++) {
1252
+ this.addChild(newNominal, nominal.children[index] || null);
1253
+ }
1254
+ nominal = newNominal;
1255
+ }
1256
+ if (!consumesGenericArgs) {
1257
+ return nominal;
1258
+ }
1259
+ if (args.children.length === 0) {
1260
+ return nominal;
1261
+ }
1262
+ let kind;
1263
+ switch (nominal.kind) {
1264
+ case "Class":
1265
+ kind = "BoundGenericClass";
1266
+ break;
1267
+ case "Structure":
1268
+ kind = "BoundGenericStructure";
1269
+ break;
1270
+ case "Enum":
1271
+ kind = "BoundGenericEnum";
1272
+ break;
1273
+ case "Protocol":
1274
+ kind = "BoundGenericProtocol";
1275
+ break;
1276
+ case "TypeAlias":
1277
+ kind = "BoundGenericTypeAlias";
1278
+ break;
1279
+ case "Function":
1280
+ case "Constructor":
1281
+ return this.createWithChildren("BoundGenericFunction", nominal, args);
1282
+ default:
1283
+ return null;
1284
+ }
1285
+ return this.createWithChildren(kind, this.createType(nominal), args);
1286
+ }
1287
+ demangleMetatype() {
1288
+ switch (this.nextChar()) {
1289
+ case "a":
1290
+ return this.createWithChild("TypeMetadataAccessFunction", this.popNodeKind("Type"));
1291
+ case "i":
1292
+ return this.createWithChild("TypeMetadataInstantiationFunction", this.popNodeKind("Type"));
1293
+ case "r":
1294
+ return this.createWithChild("TypeMetadataCompletionFunction", this.popNodeKind("Type"));
1295
+ case "u":
1296
+ return this.createWithChild("MethodLookupFunction", this.popNodeKind("Type"));
1297
+ default:
1298
+ // Metadata records and descriptors are data, not code.
1299
+ return fail();
1300
+ }
1301
+ }
1302
+ demangleArchetype() {
1303
+ switch (this.nextChar()) {
1304
+ case "O": {
1305
+ const definingContext = this.popContext();
1306
+ return this.createWithChild("OpaqueReturnTypeOf", definingContext);
1307
+ }
1308
+ case "o": {
1309
+ const index = this.demangleIndex();
1310
+ if (index < 0) {
1311
+ return fail();
1312
+ }
1313
+ const boundGenericArgs = [];
1314
+ if (!this.demangleBoundGenerics(boundGenericArgs)) {
1315
+ return null;
1316
+ }
1317
+ const name = this.popNode();
1318
+ if (!name) {
1319
+ return null;
1320
+ }
1321
+ const opaque = this.createWithChildren("OpaqueType", name, this.createIndexNode("Index", index));
1322
+ const boundGenerics = this.createNode("TypeList");
1323
+ for (let i = boundGenericArgs.length - 1; i >= 0; i--) {
1324
+ boundGenerics.children.push(boundGenericArgs[i]);
1325
+ }
1326
+ this.addChild(opaque, boundGenerics);
1327
+ const opaqueType = this.createType(opaque);
1328
+ this.addSubstitution(opaqueType);
1329
+ return opaqueType;
1330
+ }
1331
+ case "r":
1332
+ return this.createType(this.createNode("OpaqueReturnType"));
1333
+ case "R": {
1334
+ const ordinal = this.demangleIndex();
1335
+ if (ordinal < 0) {
1336
+ return null;
1337
+ }
1338
+ return this.createType(this.createWithChild("OpaqueReturnType", this.createIndexNode("OpaqueReturnTypeIndex", ordinal)));
1339
+ }
1340
+ case "x": {
1341
+ const type = this.demangleAssociatedTypeSimple(null);
1342
+ this.addSubstitution(type);
1343
+ return type;
1344
+ }
1345
+ case "X": {
1346
+ const type = this.demangleAssociatedTypeCompound(null);
1347
+ this.addSubstitution(type);
1348
+ return type;
1349
+ }
1350
+ case "y": {
1351
+ const type = this.demangleAssociatedTypeSimple(this.demangleGenericParamIndex());
1352
+ this.addSubstitution(type);
1353
+ return type;
1354
+ }
1355
+ case "Y": {
1356
+ const type = this.demangleAssociatedTypeCompound(this.demangleGenericParamIndex());
1357
+ this.addSubstitution(type);
1358
+ return type;
1359
+ }
1360
+ case "z": {
1361
+ const type = this.demangleAssociatedTypeSimple(this.getDependentGenericParamType(0, 0));
1362
+ this.addSubstitution(type);
1363
+ return type;
1364
+ }
1365
+ case "Z": {
1366
+ const type = this.demangleAssociatedTypeCompound(this.getDependentGenericParamType(0, 0));
1367
+ this.addSubstitution(type);
1368
+ return type;
1369
+ }
1370
+ default:
1371
+ // Packs and associated type references: not read here.
1372
+ return fail();
1373
+ }
1374
+ }
1375
+ demangleAssociatedTypeSimple(base) {
1376
+ const associatedTypeName = this.popAssocTypeName();
1377
+ const baseType = base
1378
+ ? this.createType(base)
1379
+ : this.popNodeKind("Type");
1380
+ return this.createType(this.createWithChildren("DependentMemberType", baseType, associatedTypeName));
1381
+ }
1382
+ demangleAssociatedTypeCompound(base) {
1383
+ const names = [];
1384
+ let firstElement = false;
1385
+ do {
1386
+ firstElement = this.popNodeKind("FirstElementMarker") !== null;
1387
+ const name = this.popAssocTypeName();
1388
+ if (!name) {
1389
+ return null;
1390
+ }
1391
+ names.push(name);
1392
+ } while (!firstElement);
1393
+ let baseType = base
1394
+ ? this.createType(base)
1395
+ : this.popNodeKind("Type");
1396
+ for (;;) {
1397
+ const name = names.pop();
1398
+ if (!name) {
1399
+ break;
1400
+ }
1401
+ let dependent = this.createNode("DependentMemberType");
1402
+ dependent = this.addChild(dependent, baseType);
1403
+ baseType = this.createType(this.addChild(dependent, name));
1404
+ }
1405
+ return baseType;
1406
+ }
1407
+ popAssocTypeName() {
1408
+ const protocol = this.popNodeKind("Type");
1409
+ if (protocol && !isProtocolNode(protocol)) {
1410
+ return null;
1411
+ }
1412
+ const identifier = this.popNodeKind("Identifier");
1413
+ const associatedType = this.createWithChild("DependentAssociatedTypeRef", identifier);
1414
+ this.addChild(associatedType, protocol);
1415
+ return associatedType;
1416
+ }
1417
+ getDependentGenericParamType(depth, index) {
1418
+ if (depth < 0 || index < 0) {
1419
+ return null;
1420
+ }
1421
+ const param = this.createNode("DependentGenericParamType");
1422
+ param.children.push(this.createIndexNode("Index", depth));
1423
+ param.children.push(this.createIndexNode("Index", index));
1424
+ return param;
1425
+ }
1426
+ demangleGenericParamIndex() {
1427
+ if (this.nextIf("d")) {
1428
+ const depth = this.demangleIndex() + 1;
1429
+ const index = this.demangleIndex();
1430
+ return this.getDependentGenericParamType(depth, index);
1431
+ }
1432
+ if (this.nextIf("z")) {
1433
+ return this.getDependentGenericParamType(0, 0);
1434
+ }
1435
+ if (this.peekChar() === "s") {
1436
+ // A constrained existential's Self: not read here.
1437
+ return fail();
1438
+ }
1439
+ return this.getDependentGenericParamType(0, this.demangleIndex() + 1);
1440
+ }
1441
+ popProtocolConformance() {
1442
+ const genericSignature = this.popNodeKind("DependentGenericSignature");
1443
+ const module = this.popModule();
1444
+ const protocol = this.popProtocol();
1445
+ let type = this.popNodeKind("Type");
1446
+ if (!type) {
1447
+ // A property behavior's conformance: not read here.
1448
+ return fail();
1449
+ }
1450
+ if (genericSignature) {
1451
+ type = this.createType(this.createWithChildren("DependentGenericType", genericSignature, type));
1452
+ }
1453
+ return this.createWithChildren("ProtocolConformance", type, protocol, module);
1454
+ }
1455
+ demangleThunkOrSpecialization() {
1456
+ const c = this.nextChar();
1457
+ switch (c) {
1458
+ case "c":
1459
+ return this.createWithChild("CurryThunk", this.popNodeIf((kind) => {
1460
+ return isEntity(kind);
1461
+ }));
1462
+ case "j":
1463
+ return this.createWithChild("DispatchThunk", this.popNodeIf((kind) => {
1464
+ return isEntity(kind);
1465
+ }));
1466
+ case "o":
1467
+ return this.createNode("ObjCAttribute");
1468
+ case "O":
1469
+ return this.createNode("NonObjCAttribute");
1470
+ case "D":
1471
+ return this.createNode("DynamicAttribute");
1472
+ case "d":
1473
+ return this.createNode("DirectMethodReferenceAttribute");
1474
+ case "a":
1475
+ return this.createNode("PartialApplyObjCForwarder");
1476
+ case "A":
1477
+ return this.createNode("PartialApplyForwarder");
1478
+ case "m":
1479
+ return this.createNode("MergedFunction");
1480
+ case "Y":
1481
+ case "Q": {
1482
+ const discriminator = this.demangleIndexAsNode();
1483
+ return this.createWithChild(c === "Q"
1484
+ ? "AsyncAwaitResumePartialFunction"
1485
+ : "AsyncSuspendResumePartialFunction", discriminator);
1486
+ }
1487
+ case "W": {
1488
+ const entity = this.popNodeIf((kind) => {
1489
+ return isEntity(kind);
1490
+ });
1491
+ const conformance = this.popProtocolConformance();
1492
+ return this.createWithChildren("ProtocolWitness", conformance, entity);
1493
+ }
1494
+ case "g":
1495
+ return this.demangleGenericSpecialization("GenericSpecialization", null);
1496
+ case "G":
1497
+ return this.demangleGenericSpecialization("GenericSpecializationNotReAbstracted", null);
1498
+ case "B":
1499
+ return this.demangleGenericSpecialization("GenericSpecializationInResilienceDomain", null);
1500
+ case "t":
1501
+ return this.demangleGenericSpecializationWithDroppedArguments(c);
1502
+ case "s":
1503
+ return this.demangleGenericSpecialization("GenericSpecializationPrespecialized", null);
1504
+ case "i":
1505
+ return this.demangleGenericSpecialization("InlinedGenericFunction", null);
1506
+ case "p":
1507
+ case "P": {
1508
+ const specialization = this.demangleSpecAttributes(c === "p"
1509
+ ? "GenericPartialSpecialization"
1510
+ : "GenericPartialSpecializationNotReAbstracted");
1511
+ const param = this.createWithChild("GenericSpecializationParam", this.popNodeKind("Type"));
1512
+ return this.addChild(specialization, param);
1513
+ }
1514
+ case "f":
1515
+ return this.demangleFunctionSpecialization();
1516
+ case "K":
1517
+ case "k":
1518
+ return this.demangleKeyPathThunkHelper(c);
1519
+ default:
1520
+ // Reabstraction and other thunks, descriptors: not read here.
1521
+ return fail();
1522
+ }
1523
+ }
1524
+ demangleKeyPathThunkHelper(c) {
1525
+ let kind;
1526
+ if (this.nextIf("mu")) {
1527
+ kind = "KeyPathUnappliedMethodThunkHelper";
1528
+ }
1529
+ else if (this.nextIf("MA")) {
1530
+ kind = "KeyPathAppliedMethodThunkHelper";
1531
+ }
1532
+ else {
1533
+ kind =
1534
+ c === "K" ? "KeyPathGetterThunkHelper" : "KeyPathSetterThunkHelper";
1535
+ }
1536
+ const isSerialized = this.nextIf("q");
1537
+ const types = [];
1538
+ let node = this.popNode();
1539
+ if (!node || node.kind !== "Type") {
1540
+ return null;
1541
+ }
1542
+ do {
1543
+ types.push(node);
1544
+ node = this.popNode();
1545
+ } while (node && node.kind === "Type");
1546
+ if (!node) {
1547
+ return null;
1548
+ }
1549
+ let result = null;
1550
+ if (node.kind === "DependentGenericSignature") {
1551
+ const declaration = this.popNode();
1552
+ if (!declaration) {
1553
+ return null;
1554
+ }
1555
+ result = this.createWithChildren(kind, declaration, node);
1556
+ }
1557
+ else {
1558
+ result = this.createWithChild(kind, node);
1559
+ }
1560
+ if (!result) {
1561
+ return null;
1562
+ }
1563
+ for (let index = types.length - 1; index >= 0; index--) {
1564
+ result.children.push(types[index]);
1565
+ }
1566
+ if (isSerialized) {
1567
+ result.children.push(this.createNode("IsSerialized"));
1568
+ }
1569
+ return result;
1570
+ }
1571
+ demangleGenericSpecialization(kind, droppedArguments) {
1572
+ const specialization = this.demangleSpecAttributes(kind);
1573
+ if (!specialization) {
1574
+ return null;
1575
+ }
1576
+ if (droppedArguments) {
1577
+ for (const argument of droppedArguments.children) {
1578
+ specialization.children.push(argument);
1579
+ }
1580
+ }
1581
+ const typeList = this.popTypeList();
1582
+ if (!typeList) {
1583
+ return null;
1584
+ }
1585
+ for (const type of typeList.children) {
1586
+ specialization.children.push(this.createWithChild("GenericSpecializationParam", type));
1587
+ }
1588
+ return specialization;
1589
+ }
1590
+ demangleGenericSpecializationWithDroppedArguments(c) {
1591
+ this.pushBack(c);
1592
+ const dropped = this.createNode("GenericSpecialization");
1593
+ while (this.nextIf("t")) {
1594
+ const n = this.demangleNatural();
1595
+ dropped.children.push(this.createIndexNode("DroppedArgument", n < 0 ? 0 : n + 1));
1596
+ }
1597
+ let kind;
1598
+ switch (this.nextChar()) {
1599
+ case "g":
1600
+ kind = "GenericSpecialization";
1601
+ break;
1602
+ case "G":
1603
+ kind = "GenericSpecializationNotReAbstracted";
1604
+ break;
1605
+ case "B":
1606
+ kind = "GenericSpecializationInResilienceDomain";
1607
+ break;
1608
+ default:
1609
+ return null;
1610
+ }
1611
+ return this.demangleGenericSpecialization(kind, dropped);
1612
+ }
1613
+ demangleFunctionSpecialization() {
1614
+ var _a;
1615
+ let specialization = this.demangleSpecAttributes("FunctionSignatureSpecialization");
1616
+ if (specialization &&
1617
+ ((_a = specialization.children[0]) === null || _a === void 0 ? void 0 : _a.kind) === "RepresentationChanged") {
1618
+ return specialization;
1619
+ }
1620
+ while (specialization && !this.nextIf("_")) {
1621
+ specialization = this.addChild(specialization, this.demangleFuncSpecParam("FunctionSignatureSpecializationParam"));
1622
+ }
1623
+ if (!this.nextIf("n")) {
1624
+ specialization = this.addChild(specialization, this.demangleFuncSpecParam("FunctionSignatureSpecializationReturn"));
1625
+ }
1626
+ if (!specialization) {
1627
+ return null;
1628
+ }
1629
+ // The parameters' identifiers and types, popped in reverse order.
1630
+ const count = specialization.children.length;
1631
+ for (let index = 0; index < count; index++) {
1632
+ const param = specialization.children[count - index - 1];
1633
+ if (param.kind !== "FunctionSignatureSpecializationParam") {
1634
+ continue;
1635
+ }
1636
+ const fixedChildren = param.children.length;
1637
+ let paramToAdd = param;
1638
+ for (let childIndex = 0; childIndex < fixedChildren; childIndex++) {
1639
+ const kindNode = param.children[fixedChildren - childIndex - 1];
1640
+ if (kindNode.kind !== "FunctionSignatureSpecializationParamKind") {
1641
+ continue;
1642
+ }
1643
+ const paramKind = kindNode.index;
1644
+ if (paramKind === SPEC_CLOSURE_PROP) {
1645
+ for (;;) {
1646
+ const type = this.popNodeKind("Type");
1647
+ if (!type) {
1648
+ break;
1649
+ }
1650
+ paramToAdd = this.addChild(paramToAdd, type);
1651
+ }
1652
+ }
1653
+ else if (paramKind === SPEC_CONSTANT_PROP_KEY_PATH) {
1654
+ const first = this.popNodeKind("Type");
1655
+ paramToAdd = this.addChild(paramToAdd, first);
1656
+ const second = this.popNodeKind("Type");
1657
+ paramToAdd = this.addChild(paramToAdd, second);
1658
+ }
1659
+ else if (paramKind === SPEC_CONSTANT_PROP_STRUCT) {
1660
+ const type = this.popNodeKind("Type");
1661
+ paramToAdd = this.addChild(paramToAdd, type);
1662
+ continue;
1663
+ }
1664
+ else if (paramKind !== SPEC_CONSTANT_PROP_FUNCTION &&
1665
+ paramKind !== SPEC_CONSTANT_PROP_GLOBAL &&
1666
+ paramKind !== SPEC_CONSTANT_PROP_STRING) {
1667
+ continue;
1668
+ }
1669
+ const identifier = this.popNodeKind("Identifier");
1670
+ paramToAdd = this.addChild(paramToAdd, identifier);
1671
+ }
1672
+ if (!paramToAdd) {
1673
+ return null;
1674
+ }
1675
+ this.reverseChildren(param, fixedChildren);
1676
+ }
1677
+ return specialization;
1678
+ }
1679
+ createParamKind(param, value) {
1680
+ param.children.push(this.createIndexNode("FunctionSignatureSpecializationParamKind", value));
1681
+ return param;
1682
+ }
1683
+ demangleFuncSpecParam(kind) {
1684
+ const param = this.createNode(kind);
1685
+ switch (this.nextChar()) {
1686
+ case "n":
1687
+ return param;
1688
+ case "c":
1689
+ return this.createParamKind(param, SPEC_CLOSURE_PROP);
1690
+ case "C": {
1691
+ this.createParamKind(param, SPEC_CLOSURE_PROP_PREVIOUS_ARG);
1692
+ const previousArgumentIndex = this.demangleNatural();
1693
+ if (previousArgumentIndex < 0) {
1694
+ return null;
1695
+ }
1696
+ param.children.push(this.createIndexNode("FunctionSignatureSpecializationParamPayload", previousArgumentIndex));
1697
+ return param;
1698
+ }
1699
+ case "p":
1700
+ for (;;) {
1701
+ const c = this.nextChar();
1702
+ switch (c) {
1703
+ case "S":
1704
+ this.createParamKind(param, SPEC_CONSTANT_PROP_STRUCT);
1705
+ break;
1706
+ case "f":
1707
+ this.createParamKind(param, SPEC_CONSTANT_PROP_FUNCTION);
1708
+ break;
1709
+ case "g":
1710
+ this.createParamKind(param, SPEC_CONSTANT_PROP_GLOBAL);
1711
+ break;
1712
+ case "i":
1713
+ if (!this.addFuncSpecParamNumber(param, SPEC_CONSTANT_PROP_INTEGER)) {
1714
+ return null;
1715
+ }
1716
+ break;
1717
+ case "d":
1718
+ if (!this.addFuncSpecParamNumber(param, SPEC_CONSTANT_PROP_FLOAT)) {
1719
+ return null;
1720
+ }
1721
+ break;
1722
+ case "s": {
1723
+ let encoding;
1724
+ switch (this.nextChar()) {
1725
+ case "b":
1726
+ encoding = "u8";
1727
+ break;
1728
+ case "w":
1729
+ encoding = "u16";
1730
+ break;
1731
+ case "c":
1732
+ encoding = "objc";
1733
+ break;
1734
+ default:
1735
+ return null;
1736
+ }
1737
+ this.createParamKind(param, SPEC_CONSTANT_PROP_STRING);
1738
+ param.children.push(this.createTextNode("FunctionSignatureSpecializationParamPayload", encoding));
1739
+ break;
1740
+ }
1741
+ case "k":
1742
+ this.createParamKind(param, SPEC_CONSTANT_PROP_KEY_PATH);
1743
+ break;
1744
+ default:
1745
+ this.pushBack(c);
1746
+ return param;
1747
+ }
1748
+ }
1749
+ case "e": {
1750
+ let value = SPEC_EXISTENTIAL_TO_GENERIC;
1751
+ if (this.nextIf("D")) {
1752
+ value |= SPEC_DEAD;
1753
+ }
1754
+ if (this.nextIf("G")) {
1755
+ value |= SPEC_OWNED_TO_GUARANTEED;
1756
+ }
1757
+ if (this.nextIf("O")) {
1758
+ value |= SPEC_GUARANTEED_TO_OWNED;
1759
+ }
1760
+ if (this.nextIf("X")) {
1761
+ value |= SPEC_SROA;
1762
+ }
1763
+ return this.createParamKind(param, value);
1764
+ }
1765
+ case "d": {
1766
+ let value = SPEC_DEAD;
1767
+ if (this.nextIf("G")) {
1768
+ value |= SPEC_OWNED_TO_GUARANTEED;
1769
+ }
1770
+ if (this.nextIf("O")) {
1771
+ value |= SPEC_GUARANTEED_TO_OWNED;
1772
+ }
1773
+ if (this.nextIf("X")) {
1774
+ value |= SPEC_SROA;
1775
+ }
1776
+ return this.createParamKind(param, value);
1777
+ }
1778
+ case "g": {
1779
+ let value = SPEC_OWNED_TO_GUARANTEED;
1780
+ if (this.nextIf("X")) {
1781
+ value |= SPEC_SROA;
1782
+ }
1783
+ return this.createParamKind(param, value);
1784
+ }
1785
+ case "o": {
1786
+ let value = SPEC_GUARANTEED_TO_OWNED;
1787
+ if (this.nextIf("X")) {
1788
+ value |= SPEC_SROA;
1789
+ }
1790
+ return this.createParamKind(param, value);
1791
+ }
1792
+ case "x":
1793
+ return this.createParamKind(param, SPEC_SROA);
1794
+ case "i":
1795
+ return this.createParamKind(param, SPEC_BOX_TO_VALUE);
1796
+ case "s":
1797
+ return this.createParamKind(param, SPEC_BOX_TO_STACK);
1798
+ case "r":
1799
+ return this.createParamKind(param, SPEC_INOUT_TO_OUT);
1800
+ default:
1801
+ // Escaping and differentiable closure propagation: not read here.
1802
+ return fail();
1803
+ }
1804
+ }
1805
+ addFuncSpecParamNumber(param, kind) {
1806
+ this.createParamKind(param, kind);
1807
+ let digits = "";
1808
+ while (isDigit(this.peekChar())) {
1809
+ digits += this.nextChar();
1810
+ }
1811
+ if (digits === "") {
1812
+ return false;
1813
+ }
1814
+ param.children.push(this.createTextNode("FunctionSignatureSpecializationParamPayload", digits));
1815
+ return true;
1816
+ }
1817
+ demangleSpecAttributes(kind) {
1818
+ const isSerialized = this.nextIf("q");
1819
+ const asyncRemoved = this.nextIf("a");
1820
+ const representationChanged = this.nextIf("r");
1821
+ const passCharacter = this.nextChar();
1822
+ if (!isDigit(passCharacter)) {
1823
+ return null;
1824
+ }
1825
+ const passId = passCharacter.charCodeAt(0) - 48;
1826
+ if (passId >= MAX_SPECIALIZATION_PASS) {
1827
+ return null;
1828
+ }
1829
+ const specialization = this.createNode(kind);
1830
+ if (isSerialized) {
1831
+ specialization.children.push(this.createNode("IsSerialized"));
1832
+ }
1833
+ if (asyncRemoved) {
1834
+ specialization.children.push(this.createNode("AsyncRemoved"));
1835
+ }
1836
+ if (representationChanged) {
1837
+ specialization.children.push(this.createNode("RepresentationChanged"));
1838
+ }
1839
+ specialization.children.push(this.createIndexNode("SpecializationPassID", passId));
1840
+ return specialization;
1841
+ }
1842
+ demangleWitness() {
1843
+ switch (this.nextChar()) {
1844
+ case "O":
1845
+ return this.demangleOutlinedValueOperation();
1846
+ case "l": {
1847
+ const conformance = this.popProtocolConformance();
1848
+ const type = this.popNodeKind("Type");
1849
+ return this.createWithChildren("LazyProtocolWitnessTableAccessor", type, conformance);
1850
+ }
1851
+ case "b": {
1852
+ const protocolType = this.popNodeKind("Type");
1853
+ const conformance = this.popProtocolConformance();
1854
+ return this.createWithChildren("BaseWitnessTableAccessor", conformance, protocolType);
1855
+ }
1856
+ case "Z": {
1857
+ const declList = this.createNode("GlobalVariableOnceDeclList");
1858
+ const variables = [];
1859
+ while (this.popNodeKind("FirstElementMarker")) {
1860
+ const identifier = this.popNodeIf(isDeclNameKind);
1861
+ if (!identifier) {
1862
+ return null;
1863
+ }
1864
+ variables.push(identifier);
1865
+ }
1866
+ for (let index = variables.length - 1; index >= 0; index--) {
1867
+ declList.children.push(variables[index]);
1868
+ }
1869
+ const context = this.popContext();
1870
+ if (!context) {
1871
+ return null;
1872
+ }
1873
+ return this.createWithChildren("GlobalVariableOnceFunction", context, declList);
1874
+ }
1875
+ default:
1876
+ // Witness tables, field offsets and tokens are data, not code.
1877
+ return fail();
1878
+ }
1879
+ }
1880
+ demangleOutlinedValueOperation() {
1881
+ const kinds = {
1882
+ B: "OutlinedInitializeWithTakeNoValueWitness",
1883
+ C: "OutlinedInitializeWithCopyNoValueWitness",
1884
+ D: "OutlinedAssignWithTakeNoValueWitness",
1885
+ F: "OutlinedAssignWithCopyNoValueWitness",
1886
+ H: "OutlinedDestroyNoValueWitness",
1887
+ y: "OutlinedCopy",
1888
+ e: "OutlinedConsume",
1889
+ r: "OutlinedRetain",
1890
+ s: "OutlinedRelease",
1891
+ b: "OutlinedInitializeWithTake",
1892
+ c: "OutlinedInitializeWithCopy",
1893
+ d: "OutlinedAssignWithTake",
1894
+ f: "OutlinedAssignWithCopy",
1895
+ h: "OutlinedDestroy",
1896
+ };
1897
+ const c = this.nextChar();
1898
+ if (c === "" || !Object.prototype.hasOwnProperty.call(kinds, c)) {
1899
+ // Outlined enum operations: not read here.
1900
+ return fail();
1901
+ }
1902
+ const kind = kinds[c];
1903
+ const genericSignature = this.popNodeKind("DependentGenericSignature");
1904
+ if (genericSignature) {
1905
+ return this.createWithChildren(kind, this.popNodeKind("Type"), genericSignature);
1906
+ }
1907
+ return this.createWithChild(kind, this.popNodeKind("Type"));
1908
+ }
1909
+ demangleSpecialType() {
1910
+ switch (this.nextChar()) {
1911
+ case "E":
1912
+ return this.popFunctionType("NoEscapeFunctionType");
1913
+ case "A":
1914
+ return this.popFunctionType("EscapingAutoClosureType");
1915
+ case "f":
1916
+ return this.popFunctionType("ThinFunctionType");
1917
+ case "K":
1918
+ return this.popFunctionType("AutoClosureType");
1919
+ case "U":
1920
+ return this.popFunctionType("UncurriedFunctionType");
1921
+ case "L":
1922
+ return this.popFunctionType("EscapingObjCBlock");
1923
+ case "B":
1924
+ return this.popFunctionType("ObjCBlock");
1925
+ case "C":
1926
+ return this.popFunctionType("CFunctionPointer");
1927
+ case "o":
1928
+ return this.createType(this.createWithChild("Unowned", this.popNodeKind("Type")));
1929
+ case "u":
1930
+ return this.createType(this.createWithChild("Unmanaged", this.popNodeKind("Type")));
1931
+ case "w":
1932
+ return this.createType(this.createWithChild("Weak", this.popNodeKind("Type")));
1933
+ case "D":
1934
+ return this.createType(this.createWithChild("DynamicSelf", this.popNodeKind("Type")));
1935
+ case "M": {
1936
+ const representation = this.demangleMetatypeRepresentation();
1937
+ const type = this.popNodeKind("Type");
1938
+ return this.createType(this.createWithChildren("Metatype", representation, type));
1939
+ }
1940
+ case "m": {
1941
+ const representation = this.demangleMetatypeRepresentation();
1942
+ const type = this.popNodeKind("Type");
1943
+ return this.createType(this.createWithChildren("ExistentialMetatype", representation, type));
1944
+ }
1945
+ case "p":
1946
+ return this.createType(this.createWithChild("ExistentialMetatype", this.popNodeKind("Type")));
1947
+ case "c": {
1948
+ const superclass = this.popNodeKind("Type");
1949
+ const protocols = this.demangleProtocolList();
1950
+ return this.createType(this.createWithChildren("ProtocolListWithClass", protocols, superclass));
1951
+ }
1952
+ case "l": {
1953
+ const protocols = this.demangleProtocolList();
1954
+ return this.createType(this.createWithChild("ProtocolListWithAnyObject", protocols));
1955
+ }
1956
+ default:
1957
+ // SIL boxes, yields, shapes, sugar and the rest: not read here.
1958
+ return fail();
1959
+ }
1960
+ }
1961
+ demangleMetatypeRepresentation() {
1962
+ switch (this.nextChar()) {
1963
+ case "t":
1964
+ return this.createTextNode("MetatypeRepresentation", "@thin");
1965
+ case "T":
1966
+ return this.createTextNode("MetatypeRepresentation", "@thick");
1967
+ case "o":
1968
+ return this.createTextNode("MetatypeRepresentation", "@objc_metatype");
1969
+ default:
1970
+ return null;
1971
+ }
1972
+ }
1973
+ demangleTypeAnnotation() {
1974
+ switch (this.nextChar()) {
1975
+ case "a":
1976
+ return this.createNode("AsyncAnnotation");
1977
+ case "A":
1978
+ return this.createNode("IsolatedAnyFunctionType");
1979
+ case "b":
1980
+ return this.createNode("ConcurrentFunctionType");
1981
+ case "c":
1982
+ return this.createWithChild("GlobalActorFunctionType", this.popTypeAndGetChild());
1983
+ case "C":
1984
+ return this.createNode("NonIsolatedCallerFunctionType");
1985
+ case "i":
1986
+ return this.createType(this.createWithChild("Isolated", this.popTypeAndGetChild()));
1987
+ case "K":
1988
+ return this.createWithChild("TypedThrowsAnnotation", this.popTypeAndGetChild());
1989
+ case "T":
1990
+ return this.createNode("SendingResultFunctionType");
1991
+ case "u":
1992
+ return this.createType(this.createWithChild("Sending", this.popTypeAndGetChild()));
1993
+ default:
1994
+ // Differentiability and compile-time values: not read here.
1995
+ return fail();
1996
+ }
1997
+ }
1998
+ demangleAccessor(child) {
1999
+ let kind;
2000
+ switch (this.nextChar()) {
2001
+ case "m":
2002
+ kind = "MaterializeForSet";
2003
+ break;
2004
+ case "s":
2005
+ kind = "Setter";
2006
+ break;
2007
+ case "g":
2008
+ kind = "Getter";
2009
+ break;
2010
+ case "G":
2011
+ kind = "GlobalGetter";
2012
+ break;
2013
+ case "w":
2014
+ kind = "WillSet";
2015
+ break;
2016
+ case "W":
2017
+ kind = "DidSet";
2018
+ break;
2019
+ case "r":
2020
+ kind = "ReadAccessor";
2021
+ break;
2022
+ case "M":
2023
+ kind = "ModifyAccessor";
2024
+ break;
2025
+ case "i":
2026
+ kind = "InitAccessor";
2027
+ break;
2028
+ case "a":
2029
+ switch (this.nextChar()) {
2030
+ case "O":
2031
+ kind = "OwningMutableAddressor";
2032
+ break;
2033
+ case "o":
2034
+ kind = "NativeOwningMutableAddressor";
2035
+ break;
2036
+ case "P":
2037
+ kind = "NativePinningMutableAddressor";
2038
+ break;
2039
+ case "u":
2040
+ kind = "UnsafeMutableAddressor";
2041
+ break;
2042
+ default:
2043
+ return null;
2044
+ }
2045
+ break;
2046
+ case "l":
2047
+ switch (this.nextChar()) {
2048
+ case "O":
2049
+ kind = "OwningAddressor";
2050
+ break;
2051
+ case "o":
2052
+ kind = "NativeOwningAddressor";
2053
+ break;
2054
+ case "p":
2055
+ kind = "NativePinningAddressor";
2056
+ break;
2057
+ case "u":
2058
+ kind = "UnsafeAddressor";
2059
+ break;
2060
+ default:
2061
+ return null;
2062
+ }
2063
+ break;
2064
+ case "p":
2065
+ // The variable or subscript itself.
2066
+ return child;
2067
+ case "y":
2068
+ case "x":
2069
+ case "b":
2070
+ case "z":
2071
+ // The yielding and borrow accessors print differently by version.
2072
+ return fail();
2073
+ default:
2074
+ return null;
2075
+ }
2076
+ return this.createWithChild(kind, child);
2077
+ }
2078
+ demangleFunctionEntity() {
2079
+ let args;
2080
+ let kind;
2081
+ switch (this.nextChar()) {
2082
+ case "D":
2083
+ args = "None";
2084
+ kind = "Deallocator";
2085
+ break;
2086
+ case "d":
2087
+ args = "None";
2088
+ kind = "Destructor";
2089
+ break;
2090
+ case "Z":
2091
+ args = "None";
2092
+ kind = "IsolatedDeallocator";
2093
+ break;
2094
+ case "E":
2095
+ args = "None";
2096
+ kind = "IVarDestroyer";
2097
+ break;
2098
+ case "e":
2099
+ args = "None";
2100
+ kind = "IVarInitializer";
2101
+ break;
2102
+ case "i":
2103
+ args = "None";
2104
+ kind = "Initializer";
2105
+ break;
2106
+ case "C":
2107
+ args = "TypeAndMaybePrivateName";
2108
+ kind = "Allocator";
2109
+ break;
2110
+ case "c":
2111
+ args = "TypeAndMaybePrivateName";
2112
+ kind = "Constructor";
2113
+ break;
2114
+ case "U":
2115
+ args = "TypeAndIndex";
2116
+ kind = "ExplicitClosure";
2117
+ break;
2118
+ case "u":
2119
+ args = "TypeAndIndex";
2120
+ kind = "ImplicitClosure";
2121
+ break;
2122
+ case "A":
2123
+ args = "Index";
2124
+ kind = "DefaultArgumentInitializer";
2125
+ break;
2126
+ case "P":
2127
+ args = "None";
2128
+ kind = "PropertyWrapperBackingInitializer";
2129
+ break;
2130
+ case "F":
2131
+ args = "None";
2132
+ kind = "PropertyWrappedFieldInitAccessor";
2133
+ break;
2134
+ case "W":
2135
+ args = "None";
2136
+ kind = "PropertyWrapperInitFromProjectedValue";
2137
+ break;
2138
+ default:
2139
+ // Macros and generic parameter declarations: not read here.
2140
+ return fail();
2141
+ }
2142
+ let nameOrIndex = null;
2143
+ let paramType = null;
2144
+ let labelList = null;
2145
+ switch (args) {
2146
+ case "TypeAndMaybePrivateName":
2147
+ nameOrIndex = this.popNodeKind("PrivateDeclName");
2148
+ paramType = this.popNodeKind("Type");
2149
+ labelList = this.popFunctionParamLabels(paramType);
2150
+ break;
2151
+ case "TypeAndIndex":
2152
+ nameOrIndex = this.demangleIndexAsNode();
2153
+ paramType = this.popNodeKind("Type");
2154
+ break;
2155
+ case "Index":
2156
+ nameOrIndex = this.demangleIndexAsNode();
2157
+ break;
2158
+ case "None":
2159
+ break;
2160
+ }
2161
+ let entity = this.createWithChild(kind, this.popContext());
2162
+ switch (args) {
2163
+ case "Index":
2164
+ entity = this.addChild(entity, nameOrIndex);
2165
+ break;
2166
+ case "TypeAndMaybePrivateName":
2167
+ this.addChild(entity, labelList);
2168
+ entity = this.addChild(entity, paramType);
2169
+ this.addChild(entity, nameOrIndex);
2170
+ break;
2171
+ case "TypeAndIndex":
2172
+ entity = this.addChild(entity, nameOrIndex);
2173
+ entity = this.addChild(entity, paramType);
2174
+ break;
2175
+ case "None":
2176
+ break;
2177
+ }
2178
+ return entity;
2179
+ }
2180
+ demangleEntity(kind) {
2181
+ const type = this.popNodeKind("Type");
2182
+ const labelList = this.popFunctionParamLabels(type);
2183
+ const name = this.popNodeIf(isDeclNameKind);
2184
+ const context = this.popContext();
2185
+ return labelList
2186
+ ? this.createWithChildren(kind, context, name, labelList, type)
2187
+ : this.createWithChildren(kind, context, name, type);
2188
+ }
2189
+ demangleSubscript() {
2190
+ const privateName = this.popNodeKind("PrivateDeclName");
2191
+ const type = this.popNodeKind("Type");
2192
+ const labelList = this.popFunctionParamLabels(type);
2193
+ const context = this.popContext();
2194
+ if (!type) {
2195
+ return null;
2196
+ }
2197
+ let subscript = this.createNode("Subscript");
2198
+ subscript = this.addChild(subscript, context);
2199
+ this.addChild(subscript, labelList);
2200
+ subscript = this.addChild(subscript, type);
2201
+ this.addChild(subscript, privateName);
2202
+ return this.demangleAccessor(subscript);
2203
+ }
2204
+ demangleProtocolList() {
2205
+ const typeList = this.createNode("TypeList");
2206
+ const protocolList = this.createWithChild("ProtocolList", typeList);
2207
+ if (!this.popNodeKind("EmptyList")) {
2208
+ let firstElement = false;
2209
+ do {
2210
+ firstElement = this.popNodeKind("FirstElementMarker") !== null;
2211
+ const protocol = this.popProtocol();
2212
+ if (!protocol) {
2213
+ return null;
2214
+ }
2215
+ typeList.children.push(protocol);
2216
+ } while (!firstElement);
2217
+ this.reverseChildren(typeList, 0);
2218
+ }
2219
+ return protocolList;
2220
+ }
2221
+ demangleGenericSignature(hasParamCounts) {
2222
+ const signature = this.createNode("DependentGenericSignature");
2223
+ if (hasParamCounts) {
2224
+ while (!this.nextIf("l")) {
2225
+ let count = 0;
2226
+ if (!this.nextIf("z")) {
2227
+ count = this.demangleIndex() + 1;
2228
+ }
2229
+ if (count < 0) {
2230
+ return null;
2231
+ }
2232
+ signature.children.push(this.createIndexNode("DependentGenericParamCount", count));
2233
+ }
2234
+ }
2235
+ else {
2236
+ signature.children.push(this.createIndexNode("DependentGenericParamCount", 1));
2237
+ }
2238
+ const numCounts = signature.children.length;
2239
+ for (;;) {
2240
+ const requirement = this.popNodeIf((kind) => {
2241
+ return REQUIREMENT_KINDS.has(kind);
2242
+ });
2243
+ if (!requirement) {
2244
+ break;
2245
+ }
2246
+ signature.children.push(requirement);
2247
+ }
2248
+ this.reverseChildren(signature, numCounts);
2249
+ return signature;
2250
+ }
2251
+ demangleGenericRequirement() {
2252
+ let typeKind;
2253
+ let constraintKind;
2254
+ let inverseKind = null;
2255
+ const c = this.nextChar();
2256
+ switch (c) {
2257
+ case "c":
2258
+ constraintKind = "BaseClass";
2259
+ typeKind = "Assoc";
2260
+ break;
2261
+ case "C":
2262
+ constraintKind = "BaseClass";
2263
+ typeKind = "CompoundAssoc";
2264
+ break;
2265
+ case "b":
2266
+ constraintKind = "BaseClass";
2267
+ typeKind = "Generic";
2268
+ break;
2269
+ case "B":
2270
+ constraintKind = "BaseClass";
2271
+ typeKind = "Substitution";
2272
+ break;
2273
+ case "t":
2274
+ constraintKind = "SameType";
2275
+ typeKind = "Assoc";
2276
+ break;
2277
+ case "T":
2278
+ constraintKind = "SameType";
2279
+ typeKind = "CompoundAssoc";
2280
+ break;
2281
+ case "s":
2282
+ constraintKind = "SameType";
2283
+ typeKind = "Generic";
2284
+ break;
2285
+ case "S":
2286
+ constraintKind = "SameType";
2287
+ typeKind = "Substitution";
2288
+ break;
2289
+ case "m":
2290
+ constraintKind = "Layout";
2291
+ typeKind = "Assoc";
2292
+ break;
2293
+ case "M":
2294
+ constraintKind = "Layout";
2295
+ typeKind = "CompoundAssoc";
2296
+ break;
2297
+ case "l":
2298
+ constraintKind = "Layout";
2299
+ typeKind = "Generic";
2300
+ break;
2301
+ case "L":
2302
+ constraintKind = "Layout";
2303
+ typeKind = "Substitution";
2304
+ break;
2305
+ case "p":
2306
+ constraintKind = "Protocol";
2307
+ typeKind = "Assoc";
2308
+ break;
2309
+ case "P":
2310
+ constraintKind = "Protocol";
2311
+ typeKind = "CompoundAssoc";
2312
+ break;
2313
+ case "Q":
2314
+ constraintKind = "Protocol";
2315
+ typeKind = "Substitution";
2316
+ break;
2317
+ case "i":
2318
+ case "I":
2319
+ constraintKind = "Inverse";
2320
+ typeKind = c === "i" ? "Generic" : "Substitution";
2321
+ inverseKind = this.demangleIndexAsNode();
2322
+ if (!inverseKind) {
2323
+ return null;
2324
+ }
2325
+ break;
2326
+ case "V":
2327
+ case "v":
2328
+ case "h":
2329
+ case "j":
2330
+ case "J":
2331
+ // Value and pack parameters, inverses on associated types.
2332
+ return fail();
2333
+ default:
2334
+ constraintKind = "Protocol";
2335
+ typeKind = "Generic";
2336
+ this.pushBack(c);
2337
+ break;
2338
+ }
2339
+ let constrainedType = null;
2340
+ switch (typeKind) {
2341
+ case "Generic":
2342
+ constrainedType = this.createType(this.demangleGenericParamIndex());
2343
+ break;
2344
+ case "Assoc":
2345
+ constrainedType = this.demangleAssociatedTypeSimple(this.demangleGenericParamIndex());
2346
+ this.addSubstitution(constrainedType);
2347
+ break;
2348
+ case "CompoundAssoc":
2349
+ constrainedType = this.demangleAssociatedTypeCompound(this.demangleGenericParamIndex());
2350
+ this.addSubstitution(constrainedType);
2351
+ break;
2352
+ case "Substitution":
2353
+ constrainedType = this.popNodeKind("Type");
2354
+ break;
2355
+ }
2356
+ switch (constraintKind) {
2357
+ case "Protocol":
2358
+ return this.createWithChildren("DependentGenericConformanceRequirement", constrainedType, this.popProtocol());
2359
+ case "Inverse":
2360
+ return this.createWithChildren("DependentGenericInverseConformanceRequirement", constrainedType, inverseKind);
2361
+ case "BaseClass":
2362
+ return this.createWithChildren("DependentGenericConformanceRequirement", constrainedType, this.popNodeKind("Type"));
2363
+ case "SameType":
2364
+ return this.createWithChildren("DependentGenericSameTypeRequirement", constrainedType, this.popNodeKind("Type"));
2365
+ case "Layout":
2366
+ return this.demangleLayoutRequirement(constrainedType);
2367
+ }
2368
+ return null;
2369
+ }
2370
+ demangleLayoutRequirement(constrainedType) {
2371
+ const c = this.nextChar();
2372
+ let size = null;
2373
+ let alignment = null;
2374
+ if (["U", "R", "N", "C", "D", "T", "B"].includes(c) && c !== "") {
2375
+ // A layout without a size.
2376
+ }
2377
+ else if (c === "E" || c === "M") {
2378
+ size = this.demangleIndexAsNode();
2379
+ if (!size) {
2380
+ return null;
2381
+ }
2382
+ alignment = this.demangleIndexAsNode();
2383
+ }
2384
+ else if (c === "e" || c === "m" || c === "S") {
2385
+ size = this.demangleIndexAsNode();
2386
+ if (!size) {
2387
+ return null;
2388
+ }
2389
+ }
2390
+ else {
2391
+ return null;
2392
+ }
2393
+ const requirement = this.createWithChildren("DependentGenericLayoutRequirement", constrainedType, this.createTextNode("Identifier", c));
2394
+ if (size) {
2395
+ this.addChild(requirement, size);
2396
+ }
2397
+ if (alignment) {
2398
+ this.addChild(requirement, alignment);
2399
+ }
2400
+ return requirement;
2401
+ }
2402
+ demangleGenericType() {
2403
+ const genericSignature = this.popNodeKind("DependentGenericSignature");
2404
+ const type = this.popNodeKind("Type");
2405
+ return this.createType(this.createWithChildren("DependentGenericType", genericSignature, type));
2406
+ }
2407
+ demangleValueWitness() {
2408
+ const code = this.nextChar() + this.nextChar();
2409
+ if (code.length !== 2 ||
2410
+ !Object.prototype.hasOwnProperty.call(VALUE_WITNESSES, code)) {
2411
+ return null;
2412
+ }
2413
+ const witness = this.createTextNode("ValueWitness", VALUE_WITNESSES[code]);
2414
+ return this.addChild(witness, this.popNodeKind("Type"));
2415
+ }
2416
+ }
2417
+ function isContextKind(kind) {
2418
+ return CONTEXT_KINDS.has(kind);
2419
+ }
2420
+ // A declaration, or a static one.
2421
+ function isDeclaration(node) {
2422
+ if (!node) {
2423
+ return false;
2424
+ }
2425
+ if (node.kind === "Static") {
2426
+ return isDeclaration(node.children[0]);
2427
+ }
2428
+ return DECLARATION_KINDS.has(node.kind);
2429
+ }
2430
+ /*
2431
+ * What a symbol may demangle to: code, one entity. Anything else - a bare
2432
+ * type, "static" on a type, an identifier the real demangler would print
2433
+ * glued on - reads as null.
2434
+ */
2435
+ function isCodeSymbol(node) {
2436
+ switch (node.kind) {
2437
+ case "CurryThunk":
2438
+ case "DispatchThunk":
2439
+ return isDeclaration(node.children[0]);
2440
+ case "ProtocolWitness":
2441
+ return isDeclaration(node.children[1]);
2442
+ case "KeyPathGetterThunkHelper":
2443
+ case "KeyPathSetterThunkHelper":
2444
+ case "KeyPathUnappliedMethodThunkHelper":
2445
+ case "KeyPathAppliedMethodThunkHelper":
2446
+ return isDeclaration(node.children[0]);
2447
+ default:
2448
+ return isDeclaration(node) || GENERATED_CODE_KINDS.has(node.kind);
2449
+ }
2450
+ }
2451
+ function isEntity(kind) {
2452
+ return kind === "Type" || isContextKind(kind);
2453
+ }
2454
+ function isDeclNameKind(kind) {
2455
+ return DECL_NAME_KINDS.has(kind);
2456
+ }
2457
+ function isProtocolNode(node) {
2458
+ if (!node) {
2459
+ return false;
2460
+ }
2461
+ if (node.kind === "Type") {
2462
+ return isProtocolNode(node.children[0]);
2463
+ }
2464
+ return node.kind === "Protocol";
2465
+ }
2466
+ // Demangle::genericParameterName: A, B, ..., Z, AB, ...; A1 one level in.
2467
+ function genericParameterName(depth, index) {
2468
+ let name = "";
2469
+ let rest = index;
2470
+ do {
2471
+ name += String.fromCharCode(65 + (rest % 26));
2472
+ rest = Math.floor(rest / 26);
2473
+ } while (rest);
2474
+ return depth !== 0 ? `${name}${depth}` : name;
2475
+ }
2476
+ // Kinds whose printed form needs no parentheses before "?" or ".Type".
2477
+ const SIMPLE_TYPE_KINDS = new Set([
2478
+ "BoundGenericClass",
2479
+ "BoundGenericEnum",
2480
+ "BoundGenericStructure",
2481
+ "BoundGenericProtocol",
2482
+ "BoundGenericTypeAlias",
2483
+ "BoundGenericFunction",
2484
+ "BuiltinTypeName",
2485
+ "Class",
2486
+ "DependentGenericType",
2487
+ "DependentMemberType",
2488
+ "DependentGenericParamType",
2489
+ "DynamicSelf",
2490
+ "Enum",
2491
+ "ExistentialMetatype",
2492
+ "Metatype",
2493
+ "MetatypeRepresentation",
2494
+ "Module",
2495
+ "Tuple",
2496
+ "Protocol",
2497
+ "ReturnType",
2498
+ "Structure",
2499
+ "TupleElementName",
2500
+ "TypeAlias",
2501
+ "TypeList",
2502
+ "LabelList",
2503
+ ]);
2504
+ // The function types an entity's labels print against.
2505
+ const FUNCTION_STYLE_KINDS = new Set([
2506
+ "FunctionType",
2507
+ "NoEscapeFunctionType",
2508
+ "UncurriedFunctionType",
2509
+ "CFunctionPointer",
2510
+ "ThinFunctionType",
2511
+ ]);
2512
+ // Every function type, printed as a type.
2513
+ const FUNCTION_TYPE_KINDS = new Set([
2514
+ "FunctionType",
2515
+ "UncurriedFunctionType",
2516
+ "NoEscapeFunctionType",
2517
+ "AutoClosureType",
2518
+ "EscapingAutoClosureType",
2519
+ "ThinFunctionType",
2520
+ "CFunctionPointer",
2521
+ "ObjCBlock",
2522
+ "EscapingObjCBlock",
2523
+ ]);
2524
+ const ACCESSOR_NAMES = {
2525
+ OwningAddressor: "owningAddressor",
2526
+ OwningMutableAddressor: "owningMutableAddressor",
2527
+ NativeOwningAddressor: "nativeOwningAddressor",
2528
+ NativeOwningMutableAddressor: "nativeOwningMutableAddressor",
2529
+ NativePinningAddressor: "nativePinningAddressor",
2530
+ NativePinningMutableAddressor: "nativePinningMutableAddressor",
2531
+ UnsafeAddressor: "unsafeAddressor",
2532
+ UnsafeMutableAddressor: "unsafeMutableAddressor",
2533
+ GlobalGetter: "getter",
2534
+ Getter: "getter",
2535
+ Setter: "setter",
2536
+ MaterializeForSet: "materializeForSet",
2537
+ WillSet: "willset",
2538
+ DidSet: "didset",
2539
+ ReadAccessor: "read",
2540
+ ModifyAccessor: "modify",
2541
+ InitAccessor: "init",
2542
+ };
2543
+ const OUTLINED_PREFIXES = {
2544
+ OutlinedRetain: "outlined retain of ",
2545
+ OutlinedRelease: "outlined release of ",
2546
+ OutlinedInitializeWithTake: "outlined init with take of ",
2547
+ OutlinedInitializeWithTakeNoValueWitness: "outlined init with take of ",
2548
+ OutlinedInitializeWithCopy: "outlined init with copy of ",
2549
+ OutlinedInitializeWithCopyNoValueWitness: "outlined init with copy of ",
2550
+ OutlinedAssignWithTake: "outlined assign with take of ",
2551
+ OutlinedAssignWithTakeNoValueWitness: "outlined assign with take of ",
2552
+ OutlinedAssignWithCopy: "outlined assign with copy of ",
2553
+ OutlinedAssignWithCopyNoValueWitness: "outlined assign with copy of ",
2554
+ OutlinedDestroy: "outlined destroy of ",
2555
+ OutlinedDestroyNoValueWitness: "outlined destroy of ",
2556
+ };
2557
+ const PREFIX_THEN_CHILD = {
2558
+ Static: "static ",
2559
+ CurryThunk: "curry thunk of ",
2560
+ DispatchThunk: "dispatch thunk of ",
2561
+ TypeMetadataAccessFunction: "type metadata accessor for ",
2562
+ TypeMetadataInstantiationFunction: "type metadata instantiation function for ",
2563
+ TypeMetadataCompletionFunction: "type metadata completion function for ",
2564
+ MethodLookupFunction: "method lookup function for ",
2565
+ InOut: "inout ",
2566
+ Isolated: "isolated ",
2567
+ Sending: "sending ",
2568
+ Shared: "__shared ",
2569
+ Owned: "__owned ",
2570
+ Weak: "weak ",
2571
+ Unowned: "unowned ",
2572
+ Unmanaged: "unowned(unsafe) ",
2573
+ };
2574
+ const KEY_PATH_PREFIXES = {
2575
+ KeyPathGetterThunkHelper: "key path getter for ",
2576
+ KeyPathSetterThunkHelper: "key path setter for ",
2577
+ KeyPathUnappliedMethodThunkHelper: "key path unapplied method ",
2578
+ KeyPathAppliedMethodThunkHelper: "key path applied method ",
2579
+ };
2580
+ const SPECIALIZATION_KINDS = new Set([
2581
+ "FunctionSignatureSpecialization",
2582
+ "GenericPartialSpecialization",
2583
+ "GenericPartialSpecializationNotReAbstracted",
2584
+ "GenericSpecialization",
2585
+ "GenericSpecializationInResilienceDomain",
2586
+ "GenericSpecializationPrespecialized",
2587
+ "GenericSpecializationNotReAbstracted",
2588
+ "InlinedGenericFunction",
2589
+ ]);
2590
+ /*
2591
+ * NodePrinter.cpp with SimplifiedUIDemangleOptions(): no module names, no
2592
+ * extension contexts, no parameter or entity types, no where clauses, no
2593
+ * specialization or conformance details, short thunk names, sugar on.
2594
+ */
2595
+ class SimplifiedPrinter {
2596
+ constructor() {
2597
+ this.out = "";
2598
+ this.specializationPrefixPrinted = false;
2599
+ this.steps = 0;
2600
+ }
2601
+ printRoot(root) {
2602
+ this.print(root, 0, false);
2603
+ return this.out;
2604
+ }
2605
+ write(text) {
2606
+ this.out += text;
2607
+ if (this.out.length > MAX_OUTPUT_LENGTH) {
2608
+ fail();
2609
+ }
2610
+ }
2611
+ child(node, index) {
2612
+ const found = node.children[index];
2613
+ if (!found) {
2614
+ // The real printer prints "<null node pointer>" or worse.
2615
+ return fail();
2616
+ }
2617
+ return found;
2618
+ }
2619
+ childIf(node, kind) {
2620
+ for (const found of node.children) {
2621
+ if (found.kind === kind) {
2622
+ return found;
2623
+ }
2624
+ }
2625
+ return null;
2626
+ }
2627
+ printChildren(node, depth, separator) {
2628
+ node.children.forEach((found, index) => {
2629
+ if (separator !== null && index > 0) {
2630
+ this.write(separator);
2631
+ }
2632
+ this.print(found, depth + 1, false);
2633
+ });
2634
+ }
2635
+ print(node, depth, asPrefixContext) {
2636
+ this.steps++;
2637
+ if (depth > MAX_PRINT_DEPTH || this.steps > MAX_PRINT_STEPS) {
2638
+ return fail();
2639
+ }
2640
+ const prefixThenChild = PREFIX_THEN_CHILD[node.kind];
2641
+ if (prefixThenChild !== undefined) {
2642
+ this.write(prefixThenChild);
2643
+ this.print(this.child(node, 0), depth + 1, false);
2644
+ return null;
2645
+ }
2646
+ const outlinedPrefix = OUTLINED_PREFIXES[node.kind];
2647
+ if (outlinedPrefix !== undefined) {
2648
+ this.write(outlinedPrefix);
2649
+ this.print(this.child(node, 0), depth + 1, false);
2650
+ return null;
2651
+ }
2652
+ const accessorName = ACCESSOR_NAMES[node.kind];
2653
+ if (accessorName !== undefined) {
2654
+ return this.printAbstractStorage(this.child(node, 0), depth, asPrefixContext, accessorName);
2655
+ }
2656
+ if (SPECIALIZATION_KINDS.has(node.kind)) {
2657
+ if (!this.specializationPrefixPrinted) {
2658
+ this.write("specialized ");
2659
+ this.specializationPrefixPrinted = true;
2660
+ }
2661
+ return null;
2662
+ }
2663
+ if (FUNCTION_TYPE_KINDS.has(node.kind)) {
2664
+ this.printFunctionType(null, node, depth);
2665
+ return null;
2666
+ }
2667
+ switch (node.kind) {
2668
+ case "OutlinedCopy":
2669
+ case "OutlinedConsume":
2670
+ this.write(node.kind === "OutlinedCopy"
2671
+ ? "outlined copy of "
2672
+ : "outlined consume of ");
2673
+ this.print(this.child(node, 0), depth + 1, false);
2674
+ if (node.children.length > 1) {
2675
+ this.print(this.child(node, 1), depth + 1, false);
2676
+ }
2677
+ return null;
2678
+ case "Extension":
2679
+ // Extension contexts are not shown; a constrained one's <A> is.
2680
+ this.print(this.child(node, 1), depth + 1, false);
2681
+ if (node.children.length === 3) {
2682
+ this.print(this.child(node, 2), depth + 1, false);
2683
+ }
2684
+ return null;
2685
+ case "Variable":
2686
+ return this.printEntity(node, depth, asPrefixContext, "WithColon", true);
2687
+ case "Function":
2688
+ case "BoundGenericFunction":
2689
+ return this.printEntity(node, depth, asPrefixContext, "FunctionStyle", true);
2690
+ case "Subscript":
2691
+ return this.printEntity(node, depth, asPrefixContext, "FunctionStyle", false, "", -1, "subscript");
2692
+ case "ExplicitClosure":
2693
+ case "ImplicitClosure": {
2694
+ const index = this.indexOf(this.child(node, 1));
2695
+ if (index >= INT_MAX) {
2696
+ // The real printer's int overflows here.
2697
+ return fail();
2698
+ }
2699
+ return this.printEntity(node, depth, asPrefixContext, "NoType", false, node.kind === "ExplicitClosure" ? "closure #" : "implicit closure #", index + 1);
2700
+ }
2701
+ case "Global":
2702
+ this.printChildren(node, depth, null);
2703
+ return null;
2704
+ case "Initializer":
2705
+ return this.printEntity(node, depth, asPrefixContext, "NoType", false, "variable initialization expression");
2706
+ case "PropertyWrapperBackingInitializer":
2707
+ return this.printEntity(node, depth, asPrefixContext, "NoType", false, "property wrapper backing initializer");
2708
+ case "PropertyWrappedFieldInitAccessor":
2709
+ return this.printEntity(node, depth, asPrefixContext, "NoType", false, "property wrapped field init accessor");
2710
+ case "PropertyWrapperInitFromProjectedValue":
2711
+ return this.printEntity(node, depth, asPrefixContext, "NoType", false, "property wrapper init from projected value");
2712
+ case "DefaultArgumentInitializer":
2713
+ return this.printEntity(node, depth, asPrefixContext, "NoType", false, "default argument ", this.indexOf(this.child(node, 1)));
2714
+ case "Type":
2715
+ this.print(this.child(node, 0), depth + 1, false);
2716
+ return null;
2717
+ case "Class":
2718
+ case "Structure":
2719
+ case "Enum":
2720
+ case "Protocol":
2721
+ case "TypeAlias":
2722
+ return this.printEntity(node, depth, asPrefixContext, "NoType", true);
2723
+ case "LocalDeclName":
2724
+ this.print(this.child(node, 1), depth + 1, false);
2725
+ this.write(` #${this.indexOf(this.child(node, 0)) + 1}`);
2726
+ return null;
2727
+ case "PrivateDeclName":
2728
+ // The discriminator is not shown.
2729
+ if (node.children.length > 1) {
2730
+ this.print(this.child(node, 1), depth + 1, false);
2731
+ }
2732
+ return null;
2733
+ case "Module":
2734
+ return null;
2735
+ case "Identifier":
2736
+ this.write(this.textOf(node));
2737
+ return null;
2738
+ case "Index":
2739
+ case "Number":
2740
+ this.write(`${this.indexOf(node)}`);
2741
+ return null;
2742
+ case "ArgumentTuple":
2743
+ this.printFunctionParameters(null, node, depth);
2744
+ return null;
2745
+ case "Tuple":
2746
+ this.write("(");
2747
+ this.printChildren(node, depth, ", ");
2748
+ this.write(")");
2749
+ return null;
2750
+ case "TupleElement": {
2751
+ const label = this.childIf(node, "TupleElementName");
2752
+ if (label) {
2753
+ this.write(`${this.textOf(label)}: `);
2754
+ }
2755
+ const type = this.childIf(node, "Type");
2756
+ if (!type) {
2757
+ return fail();
2758
+ }
2759
+ this.print(type, depth + 1, false);
2760
+ if (this.childIf(node, "VariadicMarker")) {
2761
+ this.write("...");
2762
+ }
2763
+ return null;
2764
+ }
2765
+ case "TupleElementName":
2766
+ this.write(`${this.textOf(node)}: `);
2767
+ return null;
2768
+ case "ReturnType":
2769
+ if (node.children.length === 0) {
2770
+ this.write(this.textOf(node));
2771
+ }
2772
+ else {
2773
+ this.printChildren(node, depth, null);
2774
+ }
2775
+ return null;
2776
+ case "NonObjCAttribute":
2777
+ this.write("@nonobjc ");
2778
+ return null;
2779
+ case "ObjCAttribute":
2780
+ this.write("@objc ");
2781
+ return null;
2782
+ case "DirectMethodReferenceAttribute":
2783
+ this.write("super ");
2784
+ return null;
2785
+ case "DynamicAttribute":
2786
+ this.write("dynamic ");
2787
+ return null;
2788
+ case "BuiltinTypeName":
2789
+ this.write(this.textOf(node));
2790
+ return null;
2791
+ case "InfixOperator":
2792
+ this.write(`${this.textOf(node)} infix`);
2793
+ return null;
2794
+ case "PrefixOperator":
2795
+ this.write(`${this.textOf(node)} prefix`);
2796
+ return null;
2797
+ case "PostfixOperator":
2798
+ this.write(`${this.textOf(node)} postfix`);
2799
+ return null;
2800
+ case "LazyProtocolWitnessTableAccessor":
2801
+ this.write("lazy protocol witness table accessor for type ");
2802
+ this.print(this.child(node, 0), depth + 1, false);
2803
+ this.write(" and conformance ");
2804
+ this.print(this.child(node, 1), depth + 1, false);
2805
+ return null;
2806
+ case "ProtocolWitness":
2807
+ this.write("protocol witness for ");
2808
+ this.print(this.child(node, 1), depth + 1, false);
2809
+ this.write(" in conformance ");
2810
+ this.print(this.child(node, 0), depth + 1, false);
2811
+ return null;
2812
+ case "BaseWitnessTableAccessor":
2813
+ this.write("base witness table accessor for ");
2814
+ this.print(this.child(node, 1), depth + 1, false);
2815
+ this.write(" in ");
2816
+ this.print(this.child(node, 0), depth + 1, false);
2817
+ return null;
2818
+ case "KeyPathGetterThunkHelper":
2819
+ case "KeyPathSetterThunkHelper":
2820
+ case "KeyPathUnappliedMethodThunkHelper":
2821
+ case "KeyPathAppliedMethodThunkHelper":
2822
+ this.write(KEY_PATH_PREFIXES[node.kind]);
2823
+ this.print(this.child(node, 0), depth + 1, false);
2824
+ this.write(" : ");
2825
+ for (let index = 1; index < node.children.length; index++) {
2826
+ const found = this.child(node, index);
2827
+ if (found.kind === "IsSerialized") {
2828
+ this.write(", serialized");
2829
+ }
2830
+ else {
2831
+ this.print(found, depth + 1, false);
2832
+ }
2833
+ }
2834
+ return null;
2835
+ case "PartialApplyForwarder":
2836
+ case "PartialApplyObjCForwarder":
2837
+ this.write("partial apply");
2838
+ if (node.children.length > 0) {
2839
+ this.write(" for ");
2840
+ this.printChildren(node, depth, null);
2841
+ }
2842
+ return null;
2843
+ case "MergedFunction":
2844
+ case "AsyncAwaitResumePartialFunction":
2845
+ case "AsyncSuspendResumePartialFunction":
2846
+ case "OpaqueReturnTypeIndex":
2847
+ return null;
2848
+ case "ValueWitness":
2849
+ this.write(`${this.textOf(node)} for `);
2850
+ this.print(this.child(node, 0), depth + 1, false);
2851
+ return null;
2852
+ case "BoundGenericClass":
2853
+ case "BoundGenericStructure":
2854
+ case "BoundGenericEnum":
2855
+ case "BoundGenericProtocol":
2856
+ case "BoundGenericTypeAlias":
2857
+ this.printBoundGeneric(node, depth);
2858
+ return null;
2859
+ case "DynamicSelf":
2860
+ this.write("Self");
2861
+ return null;
2862
+ case "Metatype": {
2863
+ let index = 0;
2864
+ if (node.children.length === 2) {
2865
+ this.print(this.child(node, 0), depth + 1, false);
2866
+ this.write(" ");
2867
+ index++;
2868
+ }
2869
+ const type = this.child(this.child(node, index), 0);
2870
+ this.printWithParens(type, depth);
2871
+ this.write(isExistentialType(type) ? ".Protocol" : ".Type");
2872
+ return null;
2873
+ }
2874
+ case "ExistentialMetatype": {
2875
+ let index = 0;
2876
+ if (node.children.length === 2) {
2877
+ this.print(this.child(node, 0), depth + 1, false);
2878
+ this.write(" ");
2879
+ index++;
2880
+ }
2881
+ this.print(this.child(node, index), depth + 1, false);
2882
+ this.write(".Type");
2883
+ return null;
2884
+ }
2885
+ case "MetatypeRepresentation":
2886
+ this.write(this.textOf(node));
2887
+ return null;
2888
+ case "ProtocolList": {
2889
+ const typeList = this.child(node, 0);
2890
+ if (typeList.children.length === 0) {
2891
+ this.write("Any");
2892
+ }
2893
+ else {
2894
+ this.printChildren(typeList, depth, " & ");
2895
+ }
2896
+ return null;
2897
+ }
2898
+ case "ProtocolListWithClass": {
2899
+ const protocols = this.child(node, 0);
2900
+ this.print(this.child(node, 1), depth + 1, false);
2901
+ this.write(" & ");
2902
+ this.printChildren(this.child(protocols, 0), depth, " & ");
2903
+ return null;
2904
+ }
2905
+ case "ProtocolListWithAnyObject": {
2906
+ const protocols = this.child(node, 0);
2907
+ const typeList = this.child(protocols, 0);
2908
+ if (typeList.children.length > 0) {
2909
+ this.printChildren(typeList, depth, " & ");
2910
+ this.write(" & ");
2911
+ }
2912
+ // QualifyEntities and DisplayStdlibModule stay on when simplified.
2913
+ this.write("Swift.AnyObject");
2914
+ return null;
2915
+ }
2916
+ case "Allocator":
2917
+ return this.printEntity(node, depth, asPrefixContext, "FunctionStyle", false, this.child(node, 0).kind === "Class" ? "__allocating_init" : "init");
2918
+ case "Constructor":
2919
+ return this.printEntity(node, depth, asPrefixContext, "FunctionStyle", node.children.length > 2, "init");
2920
+ case "Destructor":
2921
+ return this.printEntity(node, depth, asPrefixContext, "NoType", false, "deinit");
2922
+ case "Deallocator":
2923
+ return this.printEntity(node, depth, asPrefixContext, "NoType", false, this.child(node, 0).kind === "Class"
2924
+ ? "__deallocating_deinit"
2925
+ : "deinit");
2926
+ case "IsolatedDeallocator":
2927
+ return this.printEntity(node, depth, asPrefixContext, "NoType", false, this.child(node, 0).kind === "Class"
2928
+ ? "__isolated_deallocating_deinit"
2929
+ : "deinit");
2930
+ case "IVarInitializer":
2931
+ return this.printEntity(node, depth, asPrefixContext, "NoType", false, "__ivar_initializer");
2932
+ case "IVarDestroyer":
2933
+ return this.printEntity(node, depth, asPrefixContext, "NoType", false, "__ivar_destroyer");
2934
+ case "ProtocolConformance":
2935
+ // The conforming type only: the protocol and module are not shown.
2936
+ this.print(this.child(node, 0), depth + 1, false);
2937
+ return null;
2938
+ case "TypeList":
2939
+ this.printChildren(node, depth, null);
2940
+ return null;
2941
+ case "LabelList":
2942
+ return null;
2943
+ case "DependentGenericSignature":
2944
+ this.printGenericSignature(node);
2945
+ return null;
2946
+ case "DependentGenericParamType":
2947
+ this.write(genericParameterName(this.indexOf(this.child(node, 0)), this.indexOf(this.child(node, 1))));
2948
+ return null;
2949
+ case "DependentGenericType": {
2950
+ const dependentType = this.child(node, 1);
2951
+ this.print(this.child(node, 0), depth + 1, false);
2952
+ if (needSpaceBeforeType(dependentType)) {
2953
+ this.write(" ");
2954
+ }
2955
+ this.print(dependentType, depth + 1, false);
2956
+ return null;
2957
+ }
2958
+ case "DependentMemberType":
2959
+ this.print(this.child(node, 0), depth + 1, false);
2960
+ this.write(".");
2961
+ this.print(this.child(node, 1), depth + 1, false);
2962
+ return null;
2963
+ case "DependentAssociatedTypeRef":
2964
+ if (node.children.length > 1) {
2965
+ this.print(this.child(node, 1), depth + 1, false);
2966
+ this.write(".");
2967
+ }
2968
+ this.print(this.child(node, 0), depth + 1, false);
2969
+ return null;
2970
+ case "ConcurrentFunctionType":
2971
+ this.write("@Sendable ");
2972
+ return null;
2973
+ case "GlobalActorFunctionType":
2974
+ if (node.children.length > 0) {
2975
+ this.write("@");
2976
+ this.print(this.child(node, 0), depth + 1, false);
2977
+ this.write(" ");
2978
+ }
2979
+ return null;
2980
+ case "IsolatedAnyFunctionType":
2981
+ this.write("@isolated(any) ");
2982
+ return null;
2983
+ case "NonIsolatedCallerFunctionType":
2984
+ this.write("nonisolated(nonsending) ");
2985
+ return null;
2986
+ case "OpaqueReturnType":
2987
+ this.write("some");
2988
+ return null;
2989
+ case "OpaqueReturnTypeOf":
2990
+ this.write("<<opaque return type of ");
2991
+ this.printChildren(node, depth, null);
2992
+ this.write(">>");
2993
+ return null;
2994
+ case "OpaqueType":
2995
+ this.print(this.child(node, 0), depth + 1, false);
2996
+ this.write(".");
2997
+ this.print(this.child(node, 1), depth + 1, false);
2998
+ return null;
2999
+ case "GlobalVariableOnceFunction":
3000
+ // printContext() prints nothing here; the variables' names do.
3001
+ this.write("one-time initialization function for ");
3002
+ this.print(this.child(node, 1), depth + 1, false);
3003
+ return null;
3004
+ case "GlobalVariableOnceDeclList":
3005
+ if (node.children.length === 1) {
3006
+ this.print(this.child(node, 0), depth + 1, false);
3007
+ }
3008
+ else {
3009
+ this.write("(");
3010
+ this.printChildren(node, depth, ", ");
3011
+ this.write(")");
3012
+ }
3013
+ return null;
3014
+ default:
3015
+ /*
3016
+ * Markers, requirements, specialization details and reference
3017
+ * storage: never printed with these options, or not worth a guess.
3018
+ */
3019
+ return fail();
3020
+ }
3021
+ }
3022
+ textOf(node) {
3023
+ if (node.text === null) {
3024
+ return fail();
3025
+ }
3026
+ return node.text;
3027
+ }
3028
+ indexOf(node) {
3029
+ if (node.index === null) {
3030
+ return fail();
3031
+ }
3032
+ return node.index;
3033
+ }
3034
+ printAbstractStorage(node, depth, asPrefixContext, extraName) {
3035
+ if (node.kind === "Variable") {
3036
+ return this.printEntity(node, depth, asPrefixContext, "WithColon", true, extraName);
3037
+ }
3038
+ if (node.kind === "Subscript") {
3039
+ return this.printEntity(node, depth, asPrefixContext, "WithColon", false, extraName, -1, "subscript");
3040
+ }
3041
+ return fail();
3042
+ }
3043
+ // NodePrinter::printEntity: "<context>.<name>" or "<name> in <context>".
3044
+ printEntity(entityNode, depth, asPrefixContext, typePrintingStart, hasName, extraNameStart = "", extraIndexStart = -1, overwriteName = "") {
3045
+ let entity = entityNode;
3046
+ let typePrinting = typePrintingStart;
3047
+ let genericFunctionTypeList = null;
3048
+ if (entity.kind === "BoundGenericFunction") {
3049
+ genericFunctionTypeList = this.child(entity, 1);
3050
+ entity = this.child(entity, 0);
3051
+ }
3052
+ let multiWordName = extraNameStart.includes(" ");
3053
+ const localName = hasName && this.child(entity, 1).kind === "LocalDeclName";
3054
+ if (localName) {
3055
+ multiWordName = true;
3056
+ }
3057
+ if (asPrefixContext && (typePrinting !== "NoType" || multiWordName)) {
3058
+ return entity;
3059
+ }
3060
+ let postfixContext = null;
3061
+ const context = this.child(entity, 0);
3062
+ if (multiWordName) {
3063
+ postfixContext = context;
3064
+ }
3065
+ else {
3066
+ const currentLength = this.out.length;
3067
+ postfixContext = this.print(context, depth + 1, true);
3068
+ if (this.out.length !== currentLength) {
3069
+ this.write(".");
3070
+ }
3071
+ }
3072
+ let extraName = extraNameStart;
3073
+ let extraIndex = extraIndexStart;
3074
+ if (hasName || overwriteName !== "") {
3075
+ if (extraName !== "" && multiWordName) {
3076
+ this.write(extraName);
3077
+ if (extraIndex >= 0) {
3078
+ this.write(`${extraIndex}`);
3079
+ }
3080
+ this.write(" of ");
3081
+ extraName = "";
3082
+ extraIndex = -1;
3083
+ }
3084
+ const currentLength = this.out.length;
3085
+ if (overwriteName !== "") {
3086
+ this.write(overwriteName);
3087
+ }
3088
+ else {
3089
+ const name = this.child(entity, 1);
3090
+ if (name.kind !== "PrivateDeclName") {
3091
+ this.print(name, depth + 1, false);
3092
+ }
3093
+ const privateName = this.childIf(entity, "PrivateDeclName");
3094
+ if (privateName) {
3095
+ this.print(privateName, depth + 1, false);
3096
+ }
3097
+ }
3098
+ if (this.out.length !== currentLength && extraName !== "") {
3099
+ this.write(".");
3100
+ }
3101
+ }
3102
+ if (extraName !== "") {
3103
+ this.write(extraName);
3104
+ if (extraIndex >= 0) {
3105
+ this.write(`${extraIndex}`);
3106
+ }
3107
+ }
3108
+ if (typePrinting !== "NoType") {
3109
+ const typeNode = this.childIf(entity, "Type");
3110
+ if (!typeNode) {
3111
+ return fail();
3112
+ }
3113
+ const type = this.child(typeNode, 0);
3114
+ if (typePrinting === "FunctionStyle") {
3115
+ let t = type;
3116
+ while (t.kind === "DependentGenericType") {
3117
+ t = this.child(this.child(t, 1), 0);
3118
+ }
3119
+ if (!FUNCTION_STYLE_KINDS.has(t.kind)) {
3120
+ typePrinting = "WithColon";
3121
+ }
3122
+ }
3123
+ // Entity types are not shown; a function-style entity's labels are.
3124
+ if (typePrinting === "FunctionStyle") {
3125
+ if (multiWordName || needSpaceBeforeType(type)) {
3126
+ this.write(" ");
3127
+ }
3128
+ this.printEntityType(entity, type, genericFunctionTypeList, depth);
3129
+ }
3130
+ }
3131
+ if (!asPrefixContext && postfixContext) {
3132
+ if (entity.kind === "DefaultArgumentInitializer" ||
3133
+ entity.kind === "Initializer" ||
3134
+ entity.kind === "PropertyWrapperBackingInitializer" ||
3135
+ entity.kind === "PropertyWrappedFieldInitAccessor" ||
3136
+ entity.kind === "PropertyWrapperInitFromProjectedValue") {
3137
+ this.write(" of ");
3138
+ }
3139
+ else {
3140
+ this.write(" in ");
3141
+ }
3142
+ this.print(postfixContext, depth + 1, false);
3143
+ postfixContext = null;
3144
+ }
3145
+ return postfixContext;
3146
+ }
3147
+ printEntityType(entity, typeStart, genericFunctionTypeList, depth) {
3148
+ let type = typeStart;
3149
+ const labelList = this.childIf(entity, "LabelList");
3150
+ if (labelList || genericFunctionTypeList) {
3151
+ if (genericFunctionTypeList) {
3152
+ this.write("<");
3153
+ this.printChildren(genericFunctionTypeList, depth, ", ");
3154
+ this.write(">");
3155
+ }
3156
+ if (type.kind === "DependentGenericType") {
3157
+ if (!genericFunctionTypeList) {
3158
+ this.print(this.child(type, 0), depth + 1, false);
3159
+ }
3160
+ const dependentType = this.child(type, 1);
3161
+ if (needSpaceBeforeType(dependentType)) {
3162
+ this.write(" ");
3163
+ }
3164
+ type = this.child(dependentType, 0);
3165
+ }
3166
+ this.printFunctionType(labelList, type, depth);
3167
+ }
3168
+ else {
3169
+ this.print(type, depth + 1, false);
3170
+ }
3171
+ }
3172
+ printFunctionType(labelList, node, depth) {
3173
+ if (node.children.length < 2) {
3174
+ fail();
3175
+ }
3176
+ switch (node.kind) {
3177
+ case "FunctionType":
3178
+ case "UncurriedFunctionType":
3179
+ case "NoEscapeFunctionType":
3180
+ break;
3181
+ case "AutoClosureType":
3182
+ case "EscapingAutoClosureType":
3183
+ this.write("@autoclosure ");
3184
+ break;
3185
+ case "ThinFunctionType":
3186
+ this.write("@convention(thin) ");
3187
+ break;
3188
+ case "CFunctionPointer":
3189
+ this.write("@convention(c) ");
3190
+ break;
3191
+ case "EscapingObjCBlock":
3192
+ this.write("@escaping @convention(block) ");
3193
+ break;
3194
+ case "ObjCBlock":
3195
+ this.write("@convention(block) ");
3196
+ break;
3197
+ default:
3198
+ fail();
3199
+ }
3200
+ const argIndex = node.children.length - 2;
3201
+ let startIndex = 0;
3202
+ let isSendable = false;
3203
+ let nonIsolatedCaller = null;
3204
+ if (this.child(node, startIndex).kind === "SendingResultFunctionType") {
3205
+ startIndex++;
3206
+ }
3207
+ if (this.child(node, startIndex).kind === "IsolatedAnyFunctionType") {
3208
+ this.print(this.child(node, startIndex), depth + 1, false);
3209
+ startIndex++;
3210
+ }
3211
+ if (this.child(node, startIndex).kind === "NonIsolatedCallerFunctionType") {
3212
+ nonIsolatedCaller = this.child(node, startIndex);
3213
+ startIndex++;
3214
+ }
3215
+ if (this.child(node, startIndex).kind === "GlobalActorFunctionType") {
3216
+ this.print(this.child(node, startIndex), depth + 1, false);
3217
+ startIndex++;
3218
+ }
3219
+ const throwsKind = this.child(node, startIndex).kind;
3220
+ if (throwsKind === "ThrowsAnnotation" ||
3221
+ throwsKind === "TypedThrowsAnnotation") {
3222
+ startIndex++;
3223
+ }
3224
+ if (this.child(node, startIndex).kind === "ConcurrentFunctionType") {
3225
+ startIndex++;
3226
+ isSendable = true;
3227
+ }
3228
+ if (nonIsolatedCaller) {
3229
+ this.print(nonIsolatedCaller, depth + 1, false);
3230
+ }
3231
+ if (isSendable) {
3232
+ this.write("@Sendable ");
3233
+ }
3234
+ // Parameter types, async, throws and the result are not shown.
3235
+ this.printFunctionParameters(labelList, this.child(node, argIndex), depth);
3236
+ }
3237
+ printFunctionParameters(labelList, parameterType, _depth) {
3238
+ if (parameterType.kind !== "ArgumentTuple") {
3239
+ fail();
3240
+ }
3241
+ const parameters = this.child(this.child(parameterType, 0), 0);
3242
+ if (parameters.kind !== "Tuple") {
3243
+ this.write("(_:)");
3244
+ return;
3245
+ }
3246
+ const hasLabels = labelList !== null && labelList.children.length > 0;
3247
+ this.write("(");
3248
+ parameters.children.forEach((param, index) => {
3249
+ if (hasLabels && labelList) {
3250
+ const label = this.child(labelList, index);
3251
+ this.write(`${label.kind === "Identifier" ? this.textOf(label) : "_"}:`);
3252
+ }
3253
+ else {
3254
+ const name = this.childIf(param, "TupleElementName");
3255
+ this.write(name ? `${this.textOf(name)}:` : "_:");
3256
+ }
3257
+ });
3258
+ this.write(")");
3259
+ }
3260
+ printWithParens(type, depth) {
3261
+ const needsParens = !isSimpleType(type);
3262
+ if (needsParens) {
3263
+ this.write("(");
3264
+ }
3265
+ this.print(type, depth + 1, false);
3266
+ if (needsParens) {
3267
+ this.write(")");
3268
+ }
3269
+ }
3270
+ printBoundGeneric(node, depth) {
3271
+ if (node.children.length < 2) {
3272
+ return;
3273
+ }
3274
+ if (node.children.length !== 2 || node.kind === "BoundGenericClass") {
3275
+ this.printBoundGenericNoSugar(node, depth);
3276
+ return;
3277
+ }
3278
+ if (node.kind === "BoundGenericProtocol") {
3279
+ this.printChildren(this.child(node, 1), depth, null);
3280
+ this.write(" as ");
3281
+ this.print(this.child(node, 0), depth + 1, false);
3282
+ return;
3283
+ }
3284
+ const sugar = findSugar(node);
3285
+ const typeArgs = this.child(node, 1);
3286
+ if (sugar === "Optional" || sugar === "ImplicitlyUnwrappedOptional") {
3287
+ this.printWithParens(this.child(typeArgs, 0), depth);
3288
+ this.write(sugar === "Optional" ? "?" : "!");
3289
+ }
3290
+ else if (sugar === "Array") {
3291
+ this.write("[");
3292
+ this.print(this.child(typeArgs, 0), depth + 1, false);
3293
+ this.write("]");
3294
+ }
3295
+ else if (sugar === "Dictionary") {
3296
+ this.write("[");
3297
+ this.print(this.child(typeArgs, 0), depth + 1, false);
3298
+ this.write(" : ");
3299
+ this.print(this.child(typeArgs, 1), depth + 1, false);
3300
+ this.write("]");
3301
+ }
3302
+ else {
3303
+ this.printBoundGenericNoSugar(node, depth);
3304
+ }
3305
+ }
3306
+ printBoundGenericNoSugar(node, depth) {
3307
+ this.print(this.child(node, 0), depth + 1, false);
3308
+ this.write("<");
3309
+ this.printChildren(this.child(node, 1), depth, ", ");
3310
+ this.write(">");
3311
+ }
3312
+ // Where clauses are not shown: the parameters, as <A, B><A1>.
3313
+ printGenericSignature(node) {
3314
+ this.write("<");
3315
+ let numGenericParams = 0;
3316
+ while (numGenericParams < node.children.length &&
3317
+ this.child(node, numGenericParams).kind === "DependentGenericParamCount") {
3318
+ numGenericParams++;
3319
+ }
3320
+ for (let depth = 0; depth < numGenericParams; depth++) {
3321
+ if (depth !== 0) {
3322
+ this.write("><");
3323
+ }
3324
+ const count = this.indexOf(this.child(node, depth));
3325
+ for (let index = 0; index < count; index++) {
3326
+ if (index !== 0) {
3327
+ this.write(", ");
3328
+ }
3329
+ if (index >= 128) {
3330
+ this.write("...");
3331
+ break;
3332
+ }
3333
+ this.write(genericParameterName(depth, index));
3334
+ }
3335
+ }
3336
+ this.write(">");
3337
+ }
3338
+ }
3339
+ function needSpaceBeforeType(type) {
3340
+ switch (type.kind) {
3341
+ case "Type":
3342
+ return type.children[0] ? needSpaceBeforeType(type.children[0]) : true;
3343
+ case "FunctionType":
3344
+ case "NoEscapeFunctionType":
3345
+ case "UncurriedFunctionType":
3346
+ case "DependentGenericType":
3347
+ return false;
3348
+ default:
3349
+ return true;
3350
+ }
3351
+ }
3352
+ function isSimpleType(node) {
3353
+ var _a, _b, _c;
3354
+ switch (node.kind) {
3355
+ case "Type":
3356
+ return node.children[0] ? isSimpleType(node.children[0]) : false;
3357
+ case "ProtocolList":
3358
+ return (((_a = node.children[0]) === null || _a === void 0 ? void 0 : _a.children.length) || 0) <= 1;
3359
+ case "ProtocolListWithAnyObject":
3360
+ return ((_c = (_b = node.children[0]) === null || _b === void 0 ? void 0 : _b.children[0]) === null || _c === void 0 ? void 0 : _c.children.length) === 0;
3361
+ default:
3362
+ return SIMPLE_TYPE_KINDS.has(node.kind);
3363
+ }
3364
+ }
3365
+ function isExistentialType(node) {
3366
+ return (node.kind === "ExistentialMetatype" ||
3367
+ node.kind === "ProtocolList" ||
3368
+ node.kind === "ProtocolListWithClass" ||
3369
+ node.kind === "ProtocolListWithAnyObject");
3370
+ }
3371
+ function isSwiftModule(node) {
3372
+ return Boolean(node && node.kind === "Module" && node.text === STDLIB_NAME);
3373
+ }
3374
+ function isIdentifier(node, text) {
3375
+ return Boolean(node && node.kind === "Identifier" && node.text === text);
3376
+ }
3377
+ // NodePrinter::findSugar: Swift's Optional, Array and Dictionary.
3378
+ function findSugar(node) {
3379
+ var _a;
3380
+ if (node.children.length === 1 && node.kind === "Type") {
3381
+ return node.children[0] ? findSugar(node.children[0]) : "None";
3382
+ }
3383
+ if (node.children.length !== 2) {
3384
+ return "None";
3385
+ }
3386
+ if (node.kind !== "BoundGenericEnum" &&
3387
+ node.kind !== "BoundGenericStructure") {
3388
+ return "None";
3389
+ }
3390
+ const unboundType = (_a = node.children[0]) === null || _a === void 0 ? void 0 : _a.children[0];
3391
+ const typeArgs = node.children[1];
3392
+ if (!unboundType || !typeArgs) {
3393
+ return "None";
3394
+ }
3395
+ const name = unboundType.children[1];
3396
+ const module = unboundType.children[0];
3397
+ if (node.kind === "BoundGenericEnum") {
3398
+ if (isIdentifier(name, "Optional") &&
3399
+ typeArgs.children.length === 1 &&
3400
+ isSwiftModule(module)) {
3401
+ return "Optional";
3402
+ }
3403
+ if (isIdentifier(name, "ImplicitlyUnwrappedOptional") &&
3404
+ typeArgs.children.length === 1 &&
3405
+ isSwiftModule(module)) {
3406
+ return "ImplicitlyUnwrappedOptional";
3407
+ }
3408
+ return "None";
3409
+ }
3410
+ if (isIdentifier(name, "Array") &&
3411
+ typeArgs.children.length === 1 &&
3412
+ isSwiftModule(module)) {
3413
+ return "Array";
3414
+ }
3415
+ if (isIdentifier(name, "Dictionary") &&
3416
+ typeArgs.children.length === 2 &&
3417
+ isSwiftModule(module)) {
3418
+ return "Dictionary";
3419
+ }
3420
+ return "None";
3421
+ }
3422
+ function manglingPrefixLength(symbol) {
3423
+ for (const prefix of MANGLING_PREFIXES) {
3424
+ if (symbol.startsWith(prefix)) {
3425
+ return prefix.length;
3426
+ }
3427
+ }
3428
+ return 0;
3429
+ }
3430
+ // The simplified form swift-demangle --simplified prints, or null.
3431
+ function demangleSwiftSymbol(symbol) {
3432
+ try {
3433
+ if (typeof symbol !== "string") {
3434
+ return null;
3435
+ }
3436
+ const name = symbol.trim();
3437
+ if (name.length > MAX_SYMBOL_LENGTH || !MANGLED_NAME_PATTERN.test(name)) {
3438
+ return null;
3439
+ }
3440
+ const prefixLength = manglingPrefixLength(name);
3441
+ if (prefixLength === 0 || prefixLength === name.length) {
3442
+ return null;
3443
+ }
3444
+ const root = new Demangler(name).demangleSymbol(prefixLength);
3445
+ const printed = new SimplifiedPrinter().printRoot(root);
3446
+ /*
3447
+ * A context that prints as nothing - a closure directly in a module
3448
+ * reads "closure #1 in " - leaves the name dangling: not a name.
3449
+ */
3450
+ if (printed.length === 0 || printed.trim() !== printed) {
3451
+ return null;
3452
+ }
3453
+ return printed;
3454
+ }
3455
+ catch (_a) {
3456
+ return null;
3457
+ }
3458
+ }
3459
+ /*
3460
+ * How a symbol reads to a person: a Swift name demangled, anything else
3461
+ * (Objective-C "-[CartViewController checkout]", C "main", C++ "_ZN...", a Swift name
3462
+ * this cannot read) as given, trimmed. Never empty for a non-empty name.
3463
+ */
3464
+ function toAppleSymbolDisplayName(symbol) {
3465
+ var _a;
3466
+ try {
3467
+ if (typeof symbol !== "string") {
3468
+ return "";
3469
+ }
3470
+ const name = symbol.trim();
3471
+ if (name === "") {
3472
+ return symbol;
3473
+ }
3474
+ return (_a = demangleSwiftSymbol(name)) !== null && _a !== void 0 ? _a : name;
3475
+ }
3476
+ catch (_b) {
3477
+ return typeof symbol === "string" ? symbol : "";
3478
+ }
3479
+ }