@attlaz/client 1.77.1

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 (342) hide show
  1. package/README.md +30 -0
  2. package/dist/AttlazResource.d.ts +3 -0
  3. package/dist/AttlazResource.js +4 -0
  4. package/dist/Client.d.ts +114 -0
  5. package/dist/Client.js +278 -0
  6. package/dist/Core/MetaDataAware.d.ts +11 -0
  7. package/dist/Core/MetaDataAware.js +27 -0
  8. package/dist/Core/MetaDataWithIconAware.d.ts +13 -0
  9. package/dist/Core/MetaDataWithIconAware.js +26 -0
  10. package/dist/Helper/LoadAllHelper.d.ts +8 -0
  11. package/dist/Helper/LoadAllHelper.js +25 -0
  12. package/dist/Helper/ResponseParser.d.ts +2 -0
  13. package/dist/Helper/ResponseParser.js +2 -0
  14. package/dist/Http/ClientError.d.ts +22 -0
  15. package/dist/Http/ClientError.js +79 -0
  16. package/dist/Http/ContentTypeHelper.d.ts +6 -0
  17. package/dist/Http/ContentTypeHelper.js +13 -0
  18. package/dist/Http/Data/Headers.d.ts +3 -0
  19. package/dist/Http/Data/Headers.js +1 -0
  20. package/dist/Http/Data/Parameters.d.ts +3 -0
  21. package/dist/Http/Data/Parameters.js +1 -0
  22. package/dist/Http/Data/QueryString.d.ts +18 -0
  23. package/dist/Http/Data/QueryString.js +67 -0
  24. package/dist/Http/HttpClient.d.ts +5 -0
  25. package/dist/Http/HttpClient.js +54 -0
  26. package/dist/Http/HttpClientRequest.d.ts +17 -0
  27. package/dist/Http/HttpClientRequest.js +39 -0
  28. package/dist/Http/HttpClientResponse.d.ts +8 -0
  29. package/dist/Http/HttpClientResponse.js +10 -0
  30. package/dist/Http/HttpStatus.d.ts +13 -0
  31. package/dist/Http/HttpStatus.js +13 -0
  32. package/dist/Http/OAuthClientOptions.d.ts +11 -0
  33. package/dist/Http/OAuthClientOptions.js +15 -0
  34. package/dist/Http/OAuthClientToken.d.ts +11 -0
  35. package/dist/Http/OAuthClientToken.js +32 -0
  36. package/dist/Http/Transport/DirectTransport.d.ts +41 -0
  37. package/dist/Http/Transport/DirectTransport.js +83 -0
  38. package/dist/Http/Transport/ITransport.d.ts +13 -0
  39. package/dist/Http/Transport/ITransport.js +1 -0
  40. package/dist/Http/Transport/OAuthClient.d.ts +45 -0
  41. package/dist/Http/Transport/OAuthClient.js +315 -0
  42. package/dist/Model/AccessToken/UserAccessToken.d.ts +15 -0
  43. package/dist/Model/AccessToken/UserAccessToken.js +28 -0
  44. package/dist/Model/AccessToken/UserAccessTokenStatus.d.ts +11 -0
  45. package/dist/Model/AccessToken/UserAccessTokenStatus.js +12 -0
  46. package/dist/Model/Adapter/Adapter.d.ts +14 -0
  47. package/dist/Model/Adapter/Adapter.js +28 -0
  48. package/dist/Model/Adapter/AdapterCategory.d.ts +6 -0
  49. package/dist/Model/Adapter/AdapterCategory.js +12 -0
  50. package/dist/Model/Adapter/AdapterConfiguration.d.ts +12 -0
  51. package/dist/Model/Adapter/AdapterConfiguration.js +22 -0
  52. package/dist/Model/Adapter/AdapterConnection.d.ts +15 -0
  53. package/dist/Model/Adapter/AdapterConnection.js +24 -0
  54. package/dist/Model/Adapter/AdapterConnectionConfigurationValue.d.ts +7 -0
  55. package/dist/Model/Adapter/AdapterConnectionConfigurationValue.js +6 -0
  56. package/dist/Model/Adapter/AdapterConnectionEvent.d.ts +9 -0
  57. package/dist/Model/Adapter/AdapterConnectionEvent.js +18 -0
  58. package/dist/Model/Adapter/AdapterConnectionStatus.d.ts +9 -0
  59. package/dist/Model/Adapter/AdapterConnectionStatus.js +20 -0
  60. package/dist/Model/Adapter/TestConnectionResult.d.ts +33 -0
  61. package/dist/Model/Adapter/TestConnectionResult.js +19 -0
  62. package/dist/Model/ApiRecord.d.ts +1 -0
  63. package/dist/Model/ApiRecord.js +1 -0
  64. package/dist/Model/Collections/Collection.d.ts +13 -0
  65. package/dist/Model/Collections/Collection.js +15 -0
  66. package/dist/Model/Collections/CollectionRecord.d.ts +6 -0
  67. package/dist/Model/Collections/CollectionRecord.js +12 -0
  68. package/dist/Model/Command/CommandExecutionFilter.d.ts +6 -0
  69. package/dist/Model/Command/CommandExecutionFilter.js +1 -0
  70. package/dist/Model/Command/CommandExecutionHistory.d.ts +15 -0
  71. package/dist/Model/Command/CommandExecutionHistory.js +15 -0
  72. package/dist/Model/Command/CommandExecutionStatus.d.ts +9 -0
  73. package/dist/Model/Command/CommandExecutionStatus.js +20 -0
  74. package/dist/Model/Config.d.ts +17 -0
  75. package/dist/Model/Config.js +31 -0
  76. package/dist/Model/Configuration/Configuration.d.ts +10 -0
  77. package/dist/Model/Configuration/Configuration.js +17 -0
  78. package/dist/Model/DataValue.d.ts +6 -0
  79. package/dist/Model/DataValue.js +8 -0
  80. package/dist/Model/DataValueCollection.d.ts +17 -0
  81. package/dist/Model/DataValueCollection.js +61 -0
  82. package/dist/Model/Deployment/CodeSource.d.ts +24 -0
  83. package/dist/Model/Deployment/CodeSource.js +32 -0
  84. package/dist/Model/Deployment/CodeSourceAccount.d.ts +13 -0
  85. package/dist/Model/Deployment/CodeSourceAccount.js +25 -0
  86. package/dist/Model/Deployment/CodeSourceBuildStrategy.d.ts +10 -0
  87. package/dist/Model/Deployment/CodeSourceBuildStrategy.js +17 -0
  88. package/dist/Model/Deployment/CodeSourceRunStrategy.d.ts +10 -0
  89. package/dist/Model/Deployment/CodeSourceRunStrategy.js +17 -0
  90. package/dist/Model/Deployment/SourcesAccountRepository.d.ts +7 -0
  91. package/dist/Model/Deployment/SourcesAccountRepository.js +14 -0
  92. package/dist/Model/Deployment/SourcesAccountRepositoryBranch.d.ts +4 -0
  93. package/dist/Model/Deployment/SourcesAccountRepositoryBranch.js +8 -0
  94. package/dist/Model/EntityId.d.ts +9 -0
  95. package/dist/Model/EntityId.js +27 -0
  96. package/dist/Model/EntityType.d.ts +25 -0
  97. package/dist/Model/EntityType.js +33 -0
  98. package/dist/Model/Error/ApiError.d.ts +14 -0
  99. package/dist/Model/Error/ApiError.js +16 -0
  100. package/dist/Model/Event/EventType.d.ts +17 -0
  101. package/dist/Model/Event/EventType.js +18 -0
  102. package/dist/Model/Filter/FilterNode.d.ts +18 -0
  103. package/dist/Model/Filter/FilterNode.js +1 -0
  104. package/dist/Model/Filter/FilterOperator.d.ts +1 -0
  105. package/dist/Model/Filter/FilterOperator.js +1 -0
  106. package/dist/Model/Flow/Flow.d.ts +17 -0
  107. package/dist/Model/Flow/Flow.js +27 -0
  108. package/dist/Model/Flow/FlowRun.d.ts +18 -0
  109. package/dist/Model/Flow/FlowRun.js +32 -0
  110. package/dist/Model/Flow/FlowRunHistory.d.ts +8 -0
  111. package/dist/Model/Flow/FlowRunHistory.js +14 -0
  112. package/dist/Model/Flow/FlowRunHistoryStatus.d.ts +16 -0
  113. package/dist/Model/Flow/FlowRunHistoryStatus.js +24 -0
  114. package/dist/Model/Flow/FlowRunLifecycle.d.ts +16 -0
  115. package/dist/Model/Flow/FlowRunLifecycle.js +24 -0
  116. package/dist/Model/Flow/FlowRunPriority.d.ts +9 -0
  117. package/dist/Model/Flow/FlowRunPriority.js +17 -0
  118. package/dist/Model/Flow/FlowRunResponse.d.ts +5 -0
  119. package/dist/Model/Flow/FlowRunResponse.js +6 -0
  120. package/dist/Model/Flow/FlowRunStats.d.ts +13 -0
  121. package/dist/Model/Flow/FlowRunStats.js +27 -0
  122. package/dist/Model/Flow/FlowRunStatus.d.ts +12 -0
  123. package/dist/Model/Flow/FlowRunStatus.js +20 -0
  124. package/dist/Model/Flow/FlowRunSummary.d.ts +17 -0
  125. package/dist/Model/Flow/FlowRunSummary.js +33 -0
  126. package/dist/Model/Flow/FlowSummary.d.ts +11 -0
  127. package/dist/Model/Flow/FlowSummary.js +21 -0
  128. package/dist/Model/Flow/FlowTemplate.d.ts +10 -0
  129. package/dist/Model/Flow/FlowTemplate.js +10 -0
  130. package/dist/Model/HealthAlert/HealthAlert.d.ts +17 -0
  131. package/dist/Model/HealthAlert/HealthAlert.js +34 -0
  132. package/dist/Model/HealthAlert/HealthAlertSeverity.d.ts +8 -0
  133. package/dist/Model/HealthAlert/HealthAlertSeverity.js +16 -0
  134. package/dist/Model/HealthAlert/HealthAlertStatus.d.ts +8 -0
  135. package/dist/Model/HealthAlert/HealthAlertStatus.js +16 -0
  136. package/dist/Model/HealthAlert/HealthTestType.d.ts +14 -0
  137. package/dist/Model/HealthAlert/HealthTestType.js +22 -0
  138. package/dist/Model/Inbox/InboxMessage.d.ts +10 -0
  139. package/dist/Model/Inbox/InboxMessage.js +21 -0
  140. package/dist/Model/Infrastructure/RunnerPool.d.ts +39 -0
  141. package/dist/Model/Infrastructure/RunnerPool.js +77 -0
  142. package/dist/Model/InfrastructureStatus/QueueStatus.d.ts +11 -0
  143. package/dist/Model/InfrastructureStatus/QueueStatus.js +11 -0
  144. package/dist/Model/InfrastructureStatus/RunnersStatus.d.ts +9 -0
  145. package/dist/Model/InfrastructureStatus/RunnersStatus.js +9 -0
  146. package/dist/Model/InfrastructureStatus/StorageStatus.d.ts +13 -0
  147. package/dist/Model/InfrastructureStatus/StorageStatus.js +7 -0
  148. package/dist/Model/JsonSerializable.d.ts +6 -0
  149. package/dist/Model/JsonSerializable.js +12 -0
  150. package/dist/Model/Log/Log.d.ts +17 -0
  151. package/dist/Model/Log/Log.js +37 -0
  152. package/dist/Model/Log/LogLevel.d.ts +15 -0
  153. package/dist/Model/Log/LogLevel.js +54 -0
  154. package/dist/Model/Log/LogQuery.d.ts +26 -0
  155. package/dist/Model/Log/LogQuery.js +15 -0
  156. package/dist/Model/Log/LogStatus.d.ts +8 -0
  157. package/dist/Model/Log/LogStatus.js +16 -0
  158. package/dist/Model/Log/LogStream.d.ts +6 -0
  159. package/dist/Model/Log/LogStream.js +8 -0
  160. package/dist/Model/Log/LogStreamId.d.ts +5 -0
  161. package/dist/Model/Log/LogStreamId.js +7 -0
  162. package/dist/Model/Log/LogStreamInformation.d.ts +18 -0
  163. package/dist/Model/Log/LogStreamInformation.js +58 -0
  164. package/dist/Model/Messaging/Channel/Channel.d.ts +16 -0
  165. package/dist/Model/Messaging/Channel/Channel.js +31 -0
  166. package/dist/Model/Messaging/Channel/ChannelData.d.ts +6 -0
  167. package/dist/Model/Messaging/Channel/ChannelData.js +9 -0
  168. package/dist/Model/Messaging/Channel/ChannelType.d.ts +10 -0
  169. package/dist/Model/Messaging/Channel/ChannelType.js +18 -0
  170. package/dist/Model/Messaging/Channel/EmailChannelData.d.ts +5 -0
  171. package/dist/Model/Messaging/Channel/EmailChannelData.js +9 -0
  172. package/dist/Model/Messaging/Channel/PushChannelData.d.ts +5 -0
  173. package/dist/Model/Messaging/Channel/PushChannelData.js +9 -0
  174. package/dist/Model/Messaging/Channel/SlackChannelData.d.ts +10 -0
  175. package/dist/Model/Messaging/Channel/SlackChannelData.js +19 -0
  176. package/dist/Model/Messaging/Channel/SmsChannelData.d.ts +5 -0
  177. package/dist/Model/Messaging/Channel/SmsChannelData.js +9 -0
  178. package/dist/Model/Messaging/Channel/WebhookChannelData.d.ts +6 -0
  179. package/dist/Model/Messaging/Channel/WebhookChannelData.js +11 -0
  180. package/dist/Model/Messaging/ChannelHistory.d.ts +10 -0
  181. package/dist/Model/Messaging/ChannelHistory.js +31 -0
  182. package/dist/Model/Messaging/Subscriber.d.ts +19 -0
  183. package/dist/Model/Messaging/Subscriber.js +35 -0
  184. package/dist/Model/Pagination/CursorPagination.d.ts +5 -0
  185. package/dist/Model/Pagination/CursorPagination.js +5 -0
  186. package/dist/Model/Pagination/Filters.d.ts +20 -0
  187. package/dist/Model/Pagination/Filters.js +33 -0
  188. package/dist/Model/Project/CodeDeploy.d.ts +28 -0
  189. package/dist/Model/Project/CodeDeploy.js +57 -0
  190. package/dist/Model/Project/CodeDeployStatus.d.ts +12 -0
  191. package/dist/Model/Project/CodeDeployStatus.js +20 -0
  192. package/dist/Model/Project/PlatformLanguage.d.ts +11 -0
  193. package/dist/Model/Project/PlatformLanguage.js +19 -0
  194. package/dist/Model/Project/Project.d.ts +13 -0
  195. package/dist/Model/Project/Project.js +26 -0
  196. package/dist/Model/Project/ProjectDeployCommit.d.ts +7 -0
  197. package/dist/Model/Project/ProjectDeployCommit.js +7 -0
  198. package/dist/Model/Project/ProjectEnvironment.d.ts +16 -0
  199. package/dist/Model/Project/ProjectEnvironment.js +25 -0
  200. package/dist/Model/Project/ProjectEnvironmentType.d.ts +8 -0
  201. package/dist/Model/Project/ProjectEnvironmentType.js +16 -0
  202. package/dist/Model/ProviderToken/ProviderToken.d.ts +11 -0
  203. package/dist/Model/ProviderToken/ProviderToken.js +12 -0
  204. package/dist/Model/ProviderToken/ProviderTokenAccessToken.d.ts +6 -0
  205. package/dist/Model/ProviderToken/ProviderTokenAccessToken.js +11 -0
  206. package/dist/Model/Result/CollectionResult.d.ts +7 -0
  207. package/dist/Model/Result/CollectionResult.js +27 -0
  208. package/dist/Model/Result/ObjectResult.d.ts +5 -0
  209. package/dist/Model/Result/ObjectResult.js +21 -0
  210. package/dist/Model/Result/ObjectWrapper.d.ts +3 -0
  211. package/dist/Model/Result/ObjectWrapper.js +20 -0
  212. package/dist/Model/Result/ResultError.d.ts +4 -0
  213. package/dist/Model/Result/ResultError.js +6 -0
  214. package/dist/Model/Runner/RunnerImage.d.ts +13 -0
  215. package/dist/Model/Runner/RunnerImage.js +12 -0
  216. package/dist/Model/Search/SearchResult.d.ts +23 -0
  217. package/dist/Model/Search/SearchResult.js +94 -0
  218. package/dist/Model/State.d.ts +8 -0
  219. package/dist/Model/State.js +16 -0
  220. package/dist/Model/StateAware.d.ts +4 -0
  221. package/dist/Model/StateAware.js +1 -0
  222. package/dist/Model/Storage/StorageInformation.d.ts +10 -0
  223. package/dist/Model/Storage/StorageInformation.js +7 -0
  224. package/dist/Model/Storage/StorageItem.d.ts +9 -0
  225. package/dist/Model/Storage/StorageItem.js +21 -0
  226. package/dist/Model/Storage/StorageItemInformation.d.ts +8 -0
  227. package/dist/Model/Storage/StorageItemInformation.js +19 -0
  228. package/dist/Model/Storage/StorageType.d.ts +9 -0
  229. package/dist/Model/Storage/StorageType.js +17 -0
  230. package/dist/Model/Trigger/Trigger.d.ts +18 -0
  231. package/dist/Model/Trigger/Trigger.js +34 -0
  232. package/dist/Model/User/User.d.ts +18 -0
  233. package/dist/Model/User/User.js +33 -0
  234. package/dist/Model/User/UserAction.d.ts +14 -0
  235. package/dist/Model/User/UserAction.js +13 -0
  236. package/dist/Model/User/UserActionFilter.d.ts +10 -0
  237. package/dist/Model/User/UserActionFilter.js +1 -0
  238. package/dist/Model/User/UserAuthProvider.d.ts +12 -0
  239. package/dist/Model/User/UserAuthProvider.js +22 -0
  240. package/dist/Model/User/UserNotificationSession.d.ts +13 -0
  241. package/dist/Model/User/UserNotificationSession.js +11 -0
  242. package/dist/Model/User/UserSummary.d.ts +13 -0
  243. package/dist/Model/User/UserSummary.js +11 -0
  244. package/dist/Model/Worker/InfrastructureConfiguration.d.ts +16 -0
  245. package/dist/Model/Worker/InfrastructureConfiguration.js +20 -0
  246. package/dist/Model/Worker/Platform.d.ts +13 -0
  247. package/dist/Model/Worker/Platform.js +24 -0
  248. package/dist/Model/Worker/PlatformImage.d.ts +13 -0
  249. package/dist/Model/Worker/PlatformImage.js +24 -0
  250. package/dist/Model/Workspace/Workspace.d.ts +10 -0
  251. package/dist/Model/Workspace/Workspace.js +14 -0
  252. package/dist/Model/Workspace/WorkspaceMember.d.ts +14 -0
  253. package/dist/Model/Workspace/WorkspaceMember.js +32 -0
  254. package/dist/Model/Workspace/WorkspaceMemberInvite.d.ts +13 -0
  255. package/dist/Model/Workspace/WorkspaceMemberInvite.js +13 -0
  256. package/dist/Model/Workspace/WorkspaceMemberInvite2.d.ts +10 -0
  257. package/dist/Model/Workspace/WorkspaceMemberInvite2.js +19 -0
  258. package/dist/Model/Workspace/WorkspaceMemberInviteState.d.ts +11 -0
  259. package/dist/Model/Workspace/WorkspaceMemberInviteState.js +19 -0
  260. package/dist/Model/Workspace/WorkspaceMemberRole.d.ts +4 -0
  261. package/dist/Model/Workspace/WorkspaceMemberRole.js +4 -0
  262. package/dist/ResourceNamespace.d.ts +2 -0
  263. package/dist/ResourceNamespace.js +2 -0
  264. package/dist/Service/AccessTokenEndpoint.d.ts +11 -0
  265. package/dist/Service/AccessTokenEndpoint.js +82 -0
  266. package/dist/Service/AdapterConnectionEndpoint.d.ts +28 -0
  267. package/dist/Service/AdapterConnectionEndpoint.js +124 -0
  268. package/dist/Service/AdapterEndpoint.d.ts +12 -0
  269. package/dist/Service/AdapterEndpoint.js +64 -0
  270. package/dist/Service/ChannelEndpoint.d.ts +13 -0
  271. package/dist/Service/ChannelEndpoint.js +96 -0
  272. package/dist/Service/CodeDeployEndpoint.d.ts +9 -0
  273. package/dist/Service/CodeDeployEndpoint.js +56 -0
  274. package/dist/Service/CodeSourceStrategiesEndpoint.d.ts +8 -0
  275. package/dist/Service/CodeSourceStrategiesEndpoint.js +13 -0
  276. package/dist/Service/CollectionsEndpoint.d.ts +11 -0
  277. package/dist/Service/CollectionsEndpoint.js +54 -0
  278. package/dist/Service/CommandExecutionEndpoint.d.ts +14 -0
  279. package/dist/Service/CommandExecutionEndpoint.js +60 -0
  280. package/dist/Service/ConfigEndpoint.d.ts +8 -0
  281. package/dist/Service/ConfigEndpoint.js +46 -0
  282. package/dist/Service/ConfigurationEndpoint.d.ts +20 -0
  283. package/dist/Service/ConfigurationEndpoint.js +53 -0
  284. package/dist/Service/Endpoint.d.ts +16 -0
  285. package/dist/Service/Endpoint.js +185 -0
  286. package/dist/Service/FirewallEndpoint.d.ts +29 -0
  287. package/dist/Service/FirewallEndpoint.js +88 -0
  288. package/dist/Service/FlowEndpoint.d.ts +12 -0
  289. package/dist/Service/FlowEndpoint.js +84 -0
  290. package/dist/Service/FlowRunEndpoint.d.ts +21 -0
  291. package/dist/Service/FlowRunEndpoint.js +93 -0
  292. package/dist/Service/FlowRunRequestEndpoint.d.ts +6 -0
  293. package/dist/Service/FlowRunRequestEndpoint.js +32 -0
  294. package/dist/Service/FlowRunStatsEndpoint.d.ts +5 -0
  295. package/dist/Service/FlowRunStatsEndpoint.js +21 -0
  296. package/dist/Service/HealthAlertEndpoint.d.ts +13 -0
  297. package/dist/Service/HealthAlertEndpoint.js +36 -0
  298. package/dist/Service/InboxEndpoint.d.ts +8 -0
  299. package/dist/Service/InboxEndpoint.js +20 -0
  300. package/dist/Service/LogEndpoint.d.ts +18 -0
  301. package/dist/Service/LogEndpoint.js +127 -0
  302. package/dist/Service/PlatformEndpoint.d.ts +9 -0
  303. package/dist/Service/PlatformEndpoint.js +18 -0
  304. package/dist/Service/PlatformLanguageEndpoint.d.ts +6 -0
  305. package/dist/Service/PlatformLanguageEndpoint.js +7 -0
  306. package/dist/Service/ProjectEndpoint.d.ts +11 -0
  307. package/dist/Service/ProjectEndpoint.js +63 -0
  308. package/dist/Service/ProjectEnvironmentEndpoint.d.ts +8 -0
  309. package/dist/Service/ProjectEnvironmentEndpoint.js +48 -0
  310. package/dist/Service/ProviderTokenEndpoint.d.ts +16 -0
  311. package/dist/Service/ProviderTokenEndpoint.js +43 -0
  312. package/dist/Service/RunnerEndpoint.d.ts +6 -0
  313. package/dist/Service/RunnerEndpoint.js +28 -0
  314. package/dist/Service/RunnerPoolEndpoint.d.ts +9 -0
  315. package/dist/Service/RunnerPoolEndpoint.js +20 -0
  316. package/dist/Service/SearchEndpoint.d.ts +6 -0
  317. package/dist/Service/SearchEndpoint.js +14 -0
  318. package/dist/Service/SourcesAccountEndpoint.d.ts +16 -0
  319. package/dist/Service/SourcesAccountEndpoint.js +85 -0
  320. package/dist/Service/StorageEndpoint.d.ts +20 -0
  321. package/dist/Service/StorageEndpoint.js +130 -0
  322. package/dist/Service/SubscriberEndpoint.d.ts +9 -0
  323. package/dist/Service/SubscriberEndpoint.js +29 -0
  324. package/dist/Service/TriggerEndpoint.d.ts +10 -0
  325. package/dist/Service/TriggerEndpoint.js +67 -0
  326. package/dist/Service/UserActionEndpoint.d.ts +16 -0
  327. package/dist/Service/UserActionEndpoint.js +96 -0
  328. package/dist/Service/UserEndpoint.d.ts +29 -0
  329. package/dist/Service/UserEndpoint.js +178 -0
  330. package/dist/Service/WorkspaceEndpoint.d.ts +9 -0
  331. package/dist/Service/WorkspaceEndpoint.js +49 -0
  332. package/dist/Service/WorkspaceMemberEndpoint.d.ts +14 -0
  333. package/dist/Service/WorkspaceMemberEndpoint.js +77 -0
  334. package/dist/Utils.d.ts +11 -0
  335. package/dist/Utils.js +68 -0
  336. package/dist/index.d.ts +169 -0
  337. package/dist/index.js +154 -0
  338. package/dist/main.d.ts +1 -0
  339. package/dist/main.js +1 -0
  340. package/dist/version.d.ts +1 -0
  341. package/dist/version.js +1 -0
  342. package/package.json +72 -0
@@ -0,0 +1,18 @@
1
+ export var EventType;
2
+ (function (EventType) {
3
+ /** @deprecated * */
4
+ EventType["TaskExecutionRequested"] = "TaskExecutionRequested";
5
+ /** @deprecated * */
6
+ EventType["TaskExecutionStarted"] = "TaskExecutionStarted";
7
+ /** @deprecated * */
8
+ EventType["TaskExecutionFailed"] = "TaskExecutionFailed";
9
+ /** @deprecated * */
10
+ EventType["TaskExecutionComplete"] = "TaskExecutionComplete";
11
+ /** @deprecated * */
12
+ EventType["TaskExecutionRetry"] = "TaskExecutionRetry";
13
+ EventType["FlowRunRequested"] = "FlowRunRequested";
14
+ EventType["FlowRunStarted"] = "FlowRunStarted";
15
+ EventType["FlowRunFailed"] = "FlowRunFailed";
16
+ EventType["FlowRunComplete"] = "FlowRunComplete";
17
+ EventType["FlowRunRetry"] = "FlowRunRetry";
18
+ })(EventType || (EventType = {}));
@@ -0,0 +1,18 @@
1
+ import { FilterOperator } from './FilterOperator.js';
2
+ export type FilterPrimitive = string | number | boolean | null;
3
+ export type FilterValue = FilterPrimitive | FilterPrimitive[];
4
+ export interface AndFilterNode {
5
+ and: FilterNode[];
6
+ }
7
+ export interface OrFilterNode {
8
+ or: FilterNode[];
9
+ }
10
+ export interface NotFilterNode {
11
+ not: FilterNode;
12
+ }
13
+ export interface CompareFilterNode {
14
+ field: string;
15
+ op: FilterOperator;
16
+ value: FilterValue;
17
+ }
18
+ export type FilterNode = AndFilterNode | OrFilterNode | NotFilterNode | CompareFilterNode;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export type FilterOperator = 'eq' | 'neq' | 'in' | 'not_in' | 'lt' | 'lte' | 'gt' | 'gte' | 'is_null' | 'is_not_null' | 'starts_with' | 'ends_with' | 'contains';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ import { State } from '../State.js';
2
+ import { StateAware } from '../StateAware.js';
3
+ import { MetaDataAware } from '../../Core/MetaDataAware.js';
4
+ import { ApiRecord } from '../ApiRecord.js';
5
+ export declare class Flow extends MetaDataAware implements StateAware {
6
+ id: string;
7
+ key: string;
8
+ projectId: string;
9
+ isDirect: boolean;
10
+ state: State;
11
+ /** The maximum number of flows to run at any time (0 = no limit) * */
12
+ parallelLimit: number;
13
+ codeSourceId: string | null;
14
+ runStrategyId: string | null;
15
+ runnerPoolId: string | null;
16
+ static parse(rawFlow: ApiRecord): Flow;
17
+ }
@@ -0,0 +1,27 @@
1
+ import { State } from '../State.js';
2
+ import { Utils } from '../../Utils.js';
3
+ import { MetaDataAware } from '../../Core/MetaDataAware.js';
4
+ export class Flow extends MetaDataAware {
5
+ id;
6
+ key;
7
+ projectId;
8
+ isDirect = false;
9
+ state = State.Active;
10
+ /** The maximum number of flows to run at any time (0 = no limit) * */
11
+ parallelLimit = 0;
12
+ codeSourceId = null;
13
+ runStrategyId = null;
14
+ runnerPoolId = null;
15
+ static parse(rawFlow) {
16
+ const flow = MetaDataAware.parseMetaData(new Flow(), rawFlow);
17
+ flow.key = rawFlow.key;
18
+ flow.projectId = rawFlow.project;
19
+ flow.isDirect = Utils.isTrue(rawFlow.is_direct);
20
+ flow.state = State.fromString(rawFlow.state);
21
+ flow.parallelLimit = Utils.parseInt(rawFlow.parallel_limit);
22
+ flow.codeSourceId = rawFlow.code_source;
23
+ flow.runStrategyId = rawFlow.run_strategy;
24
+ flow.runnerPoolId = rawFlow.runner_pool;
25
+ return flow;
26
+ }
27
+ }
@@ -0,0 +1,18 @@
1
+ import { MetaDataAware } from '../../Core/MetaDataAware.js';
2
+ import { ApiRecord } from '../ApiRecord.js';
3
+ import { LogLevel } from '../Log/LogLevel.js';
4
+ import { LogStreamId } from '../Log/LogStreamId.js';
5
+ import { FlowRunPriority } from './FlowRunPriority.js';
6
+ export declare class FlowRun extends MetaDataAware {
7
+ id: string;
8
+ flowId: string;
9
+ arguments: object | null;
10
+ projectEnvironmentId: string;
11
+ triggerId: string;
12
+ priority: FlowRunPriority;
13
+ deployId: string;
14
+ logStreamId: LogStreamId;
15
+ logLevelCount: Map<LogLevel, number>;
16
+ logsPurged: boolean;
17
+ static parse(rawFlowRun: ApiRecord): FlowRun;
18
+ }
@@ -0,0 +1,32 @@
1
+ import { MetaDataAware } from '../../Core/MetaDataAware.js';
2
+ import { Utils } from '../../Utils.js';
3
+ import { LogStreamId } from '../Log/LogStreamId.js';
4
+ import { FlowRunPriority } from './FlowRunPriority.js';
5
+ export class FlowRun extends MetaDataAware {
6
+ id;
7
+ // public key: string;
8
+ flowId;
9
+ arguments;
10
+ projectEnvironmentId;
11
+ triggerId;
12
+ // TODO: implement priority object
13
+ priority = FlowRunPriority.None;
14
+ deployId;
15
+ logStreamId;
16
+ logLevelCount;
17
+ logsPurged = false;
18
+ static parse(rawFlowRun) {
19
+ const flowRun = MetaDataAware.parseMetaData(new FlowRun(), rawFlowRun);
20
+ flowRun.id = rawFlowRun.id;
21
+ flowRun.flowId = rawFlowRun.flow;
22
+ flowRun.arguments = rawFlowRun.arguments;
23
+ flowRun.projectEnvironmentId = rawFlowRun.project_environment;
24
+ flowRun.priority = FlowRunPriority.fromString(rawFlowRun.priority);
25
+ flowRun.triggerId = rawFlowRun.trigger;
26
+ flowRun.deployId = rawFlowRun.deploy;
27
+ flowRun.logStreamId = new LogStreamId(rawFlowRun.log_stream);
28
+ flowRun.logLevelCount = rawFlowRun.log_level_count;
29
+ flowRun.logsPurged = Utils.isTrue(rawFlowRun.logs_purged);
30
+ return flowRun;
31
+ }
32
+ }
@@ -0,0 +1,8 @@
1
+ import { ApiRecord } from '../ApiRecord.js';
2
+ import { FlowRunHistoryStatus } from './FlowRunHistoryStatus.js';
3
+ export declare class FlowRunHistory {
4
+ id: string;
5
+ time: Date;
6
+ status: FlowRunHistoryStatus;
7
+ static parse(rawFlowRunHistory: ApiRecord): FlowRunHistory;
8
+ }
@@ -0,0 +1,14 @@
1
+ import { Utils } from '../../Utils.js';
2
+ import { FlowRunHistoryStatus } from './FlowRunHistoryStatus.js';
3
+ export class FlowRunHistory {
4
+ id;
5
+ time;
6
+ status;
7
+ static parse(rawFlowRunHistory) {
8
+ const flowRunHistory = new FlowRunHistory();
9
+ flowRunHistory.id = rawFlowRunHistory.id;
10
+ flowRunHistory.time = Utils.parseRawDate(rawFlowRunHistory.time);
11
+ flowRunHistory.status = FlowRunHistoryStatus.fromString(rawFlowRunHistory.status);
12
+ return flowRunHistory;
13
+ }
14
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Status values as stored in flow_run_history (distinct from FlowRunStatus, the derived run state).
3
+ * Notably `started`/`success` here vs `running`/`complete` on FlowRunStatus — reusing FlowRunStatus
4
+ * to parse history rows would throw on those two values and silently drop them.
5
+ */
6
+ export declare enum FlowRunHistoryStatus {
7
+ Pending = "pending",
8
+ Started = "started",
9
+ Success = "success",
10
+ Failed = "failed",
11
+ Stopped = "stopped",
12
+ Canceled = "canceled"
13
+ }
14
+ export declare namespace FlowRunHistoryStatus {
15
+ const fromString: (input: string) => FlowRunHistoryStatus;
16
+ }
@@ -0,0 +1,24 @@
1
+ import { Utils } from '../../Utils.js';
2
+ /**
3
+ * Status values as stored in flow_run_history (distinct from FlowRunStatus, the derived run state).
4
+ * Notably `started`/`success` here vs `running`/`complete` on FlowRunStatus — reusing FlowRunStatus
5
+ * to parse history rows would throw on those two values and silently drop them.
6
+ */
7
+ export var FlowRunHistoryStatus;
8
+ (function (FlowRunHistoryStatus) {
9
+ FlowRunHistoryStatus["Pending"] = "pending";
10
+ FlowRunHistoryStatus["Started"] = "started";
11
+ FlowRunHistoryStatus["Success"] = "success";
12
+ FlowRunHistoryStatus["Failed"] = "failed";
13
+ FlowRunHistoryStatus["Stopped"] = "stopped";
14
+ FlowRunHistoryStatus["Canceled"] = "canceled";
15
+ })(FlowRunHistoryStatus || (FlowRunHistoryStatus = {}));
16
+ (function (FlowRunHistoryStatus) {
17
+ FlowRunHistoryStatus.fromString = (input) => {
18
+ const result = Utils.parseEnum(input, FlowRunHistoryStatus);
19
+ if (result === null) {
20
+ throw new Error('Unable to parse FlowRunHistoryStatus from string: Unknown FlowRunHistoryStatus "' + input + '"');
21
+ }
22
+ return result;
23
+ };
24
+ })(FlowRunHistoryStatus || (FlowRunHistoryStatus = {}));
@@ -0,0 +1,16 @@
1
+ import { ApiRecord } from '../ApiRecord.js';
2
+ import { FlowRunStatus } from './FlowRunStatus.js';
3
+ /**
4
+ * The authoritative lifecycle of a flow run, as derived server-side from its event history
5
+ * (first-terminal-wins). Unlike FlowRunSummary, which reflects the (eventually-consistent) index
6
+ * projection, this is computed directly from the history and is safe for control-flow decisions
7
+ * such as the worker's "is this run already terminal?" tombstone check.
8
+ */
9
+ export declare class FlowRunLifecycle {
10
+ id: string;
11
+ status: FlowRunStatus;
12
+ requested: Date | null;
13
+ started: Date | null;
14
+ ended: Date | null;
15
+ static parse(rawFlowRunLifecycle: ApiRecord): FlowRunLifecycle;
16
+ }
@@ -0,0 +1,24 @@
1
+ import { Utils } from '../../Utils.js';
2
+ import { FlowRunStatus } from './FlowRunStatus.js';
3
+ /**
4
+ * The authoritative lifecycle of a flow run, as derived server-side from its event history
5
+ * (first-terminal-wins). Unlike FlowRunSummary, which reflects the (eventually-consistent) index
6
+ * projection, this is computed directly from the history and is safe for control-flow decisions
7
+ * such as the worker's "is this run already terminal?" tombstone check.
8
+ */
9
+ export class FlowRunLifecycle {
10
+ id;
11
+ status;
12
+ requested;
13
+ started;
14
+ ended;
15
+ static parse(rawFlowRunLifecycle) {
16
+ const lifecycle = new FlowRunLifecycle();
17
+ lifecycle.id = rawFlowRunLifecycle.id;
18
+ lifecycle.status = FlowRunStatus.fromString(rawFlowRunLifecycle.status);
19
+ lifecycle.requested = rawFlowRunLifecycle.requested === null || rawFlowRunLifecycle.requested === undefined ? null : Utils.parseRawDate(rawFlowRunLifecycle.requested);
20
+ lifecycle.started = rawFlowRunLifecycle.started === null || rawFlowRunLifecycle.started === undefined ? null : Utils.parseRawDate(rawFlowRunLifecycle.started);
21
+ lifecycle.ended = rawFlowRunLifecycle.ended === null || rawFlowRunLifecycle.ended === undefined ? null : Utils.parseRawDate(rawFlowRunLifecycle.ended);
22
+ return lifecycle;
23
+ }
24
+ }
@@ -0,0 +1,9 @@
1
+ export declare enum FlowRunPriority {
2
+ None = 0,
3
+ Low = 1,
4
+ Medium = 2,
5
+ High = 3
6
+ }
7
+ export declare namespace FlowRunPriority {
8
+ const fromString: (input: string) => FlowRunPriority;
9
+ }
@@ -0,0 +1,17 @@
1
+ import { Utils } from '../../Utils.js';
2
+ export var FlowRunPriority;
3
+ (function (FlowRunPriority) {
4
+ FlowRunPriority[FlowRunPriority["None"] = 0] = "None";
5
+ FlowRunPriority[FlowRunPriority["Low"] = 1] = "Low";
6
+ FlowRunPriority[FlowRunPriority["Medium"] = 2] = "Medium";
7
+ FlowRunPriority[FlowRunPriority["High"] = 3] = "High";
8
+ })(FlowRunPriority || (FlowRunPriority = {}));
9
+ (function (FlowRunPriority) {
10
+ FlowRunPriority.fromString = (input) => {
11
+ const result = Utils.parseEnum(input, FlowRunPriority);
12
+ if (result === null) {
13
+ throw new Error('Unable to parse FlowRunPriority from string: Unknown FlowRunPriority "' + input + '"');
14
+ }
15
+ return result;
16
+ };
17
+ })(FlowRunPriority || (FlowRunPriority = {}));
@@ -0,0 +1,5 @@
1
+ export declare class FlowRunResponse {
2
+ flowRunRequestId: string;
3
+ success: boolean;
4
+ result: any;
5
+ }
@@ -0,0 +1,6 @@
1
+ export class FlowRunResponse {
2
+ flowRunRequestId;
3
+ success;
4
+ // retry: boolean;
5
+ result;
6
+ }
@@ -0,0 +1,13 @@
1
+ export declare class FlowRunStats {
2
+ flowRunId: string;
3
+ time: Date;
4
+ memory: number | null;
5
+ memoryLimit: number | null;
6
+ cpu: number | null;
7
+ cpuLimit: number | null;
8
+ networkOutbound: number | null;
9
+ networkInbound: number | null;
10
+ fileRead: number | null;
11
+ fileWrite: number | null;
12
+ static parse(raw: any): FlowRunStats;
13
+ }
@@ -0,0 +1,27 @@
1
+ import { Utils } from '../../Utils.js';
2
+ export class FlowRunStats {
3
+ flowRunId;
4
+ time;
5
+ memory = null;
6
+ memoryLimit = null;
7
+ cpu = null;
8
+ cpuLimit = null;
9
+ networkOutbound = null;
10
+ networkInbound = null;
11
+ fileRead = null;
12
+ fileWrite = null;
13
+ static parse(raw) {
14
+ const flowRunStats = new FlowRunStats();
15
+ flowRunStats.flowRunId = raw.flow_run;
16
+ flowRunStats.time = Utils.parseRawDate(raw.time);
17
+ flowRunStats.memory = raw.memory;
18
+ flowRunStats.memoryLimit = raw.memory_limit;
19
+ flowRunStats.cpu = raw.cpu;
20
+ flowRunStats.cpuLimit = raw.cpu_limit;
21
+ flowRunStats.networkOutbound = raw.network_outbound;
22
+ flowRunStats.networkInbound = raw.network_inbound;
23
+ flowRunStats.fileRead = raw.file_read;
24
+ flowRunStats.fileWrite = raw.file_write;
25
+ return flowRunStats;
26
+ }
27
+ }
@@ -0,0 +1,12 @@
1
+ export declare enum FlowRunStatus {
2
+ Unknown = "unknown",
3
+ Pending = "pending",
4
+ Canceled = "canceled",
5
+ Running = "running",
6
+ Failed = "failed",
7
+ Stopped = "stopped",
8
+ Complete = "complete"
9
+ }
10
+ export declare namespace FlowRunStatus {
11
+ const fromString: (input: string) => FlowRunStatus;
12
+ }
@@ -0,0 +1,20 @@
1
+ import { Utils } from '../../Utils.js';
2
+ export var FlowRunStatus;
3
+ (function (FlowRunStatus) {
4
+ FlowRunStatus["Unknown"] = "unknown";
5
+ FlowRunStatus["Pending"] = "pending";
6
+ FlowRunStatus["Canceled"] = "canceled";
7
+ FlowRunStatus["Running"] = "running";
8
+ FlowRunStatus["Failed"] = "failed";
9
+ FlowRunStatus["Stopped"] = "stopped";
10
+ FlowRunStatus["Complete"] = "complete";
11
+ })(FlowRunStatus || (FlowRunStatus = {}));
12
+ (function (FlowRunStatus) {
13
+ FlowRunStatus.fromString = (input) => {
14
+ const result = Utils.parseEnum(input, FlowRunStatus);
15
+ if (result === null) {
16
+ throw new Error('Unable to parse FlowRunStatus from string: Unknown FlowRunStatus "' + input + '"');
17
+ }
18
+ return result;
19
+ };
20
+ })(FlowRunStatus || (FlowRunStatus = {}));
@@ -0,0 +1,17 @@
1
+ import { FlowRunStatus } from './FlowRunStatus.js';
2
+ import { FlowRun } from './FlowRun.js';
3
+ export declare class FlowRunSummary extends FlowRun {
4
+ time: Date;
5
+ runDuration: number;
6
+ pendingDuration: number;
7
+ status: FlowRunStatus;
8
+ networkUpload: number | null;
9
+ networkDownload: number | null;
10
+ fileRead: number | null;
11
+ fileWrite: number | null;
12
+ cpuAverage: number | null;
13
+ cpuMaximum: number | null;
14
+ memoryAverage: number | null;
15
+ memoryMaximum: number | null;
16
+ static parse(rawFlowRunSummary: any): FlowRunSummary;
17
+ }
@@ -0,0 +1,33 @@
1
+ import { Utils } from '../../Utils.js';
2
+ import { FlowRunStatus } from './FlowRunStatus.js';
3
+ import { FlowRun } from './FlowRun.js';
4
+ export class FlowRunSummary extends FlowRun {
5
+ time;
6
+ runDuration;
7
+ pendingDuration;
8
+ status = FlowRunStatus.Unknown;
9
+ networkUpload = null;
10
+ networkDownload = null;
11
+ fileRead = null;
12
+ fileWrite = null;
13
+ cpuAverage = null;
14
+ cpuMaximum = null;
15
+ memoryAverage = null;
16
+ memoryMaximum = null;
17
+ static parse(rawFlowRunSummary) {
18
+ const flowRunSummary = FlowRun.parse(rawFlowRunSummary);
19
+ flowRunSummary.time = Utils.parseRawDate(rawFlowRunSummary.time);
20
+ flowRunSummary.runDuration = rawFlowRunSummary.run_duration;
21
+ flowRunSummary.pendingDuration = rawFlowRunSummary.pending_duration;
22
+ flowRunSummary.status = FlowRunStatus.fromString(rawFlowRunSummary.status);
23
+ flowRunSummary.networkUpload = rawFlowRunSummary.network_upload;
24
+ flowRunSummary.networkDownload = rawFlowRunSummary.network_download;
25
+ flowRunSummary.fileRead = rawFlowRunSummary.file_read;
26
+ flowRunSummary.fileWrite = rawFlowRunSummary.file_write;
27
+ flowRunSummary.cpuAverage = rawFlowRunSummary.cpu_average;
28
+ flowRunSummary.cpuMaximum = rawFlowRunSummary.cpu_maximum;
29
+ flowRunSummary.memoryAverage = rawFlowRunSummary.memory_average;
30
+ flowRunSummary.memoryMaximum = rawFlowRunSummary.memory_maximum;
31
+ return flowRunSummary;
32
+ }
33
+ }
@@ -0,0 +1,11 @@
1
+ import { Flow } from './Flow.js';
2
+ import { FlowRunStatus } from './FlowRunStatus.js';
3
+ export declare class FlowSummary extends Flow {
4
+ projectEnvironment: string;
5
+ status: FlowRunStatus;
6
+ latestRun: Date | null;
7
+ averageRunDuration: number | null;
8
+ averagePendingDuration: number | null;
9
+ runCount: number;
10
+ static parse(rawFlowSummary: any): FlowSummary;
11
+ }
@@ -0,0 +1,21 @@
1
+ import { Utils } from '../../Utils.js';
2
+ import { Flow } from './Flow.js';
3
+ import { FlowRunStatus } from './FlowRunStatus.js';
4
+ export class FlowSummary extends Flow {
5
+ projectEnvironment;
6
+ status = FlowRunStatus.Unknown;
7
+ latestRun = null;
8
+ averageRunDuration = null;
9
+ averagePendingDuration = null;
10
+ runCount = 0;
11
+ static parse(rawFlowSummary) {
12
+ const flowSummary = Flow.parse(rawFlowSummary);
13
+ flowSummary.projectEnvironment = rawFlowSummary.project_environment;
14
+ flowSummary.status = FlowRunStatus.fromString(rawFlowSummary.status);
15
+ flowSummary.latestRun = rawFlowSummary.latest_run === null ? null : Utils.parseRawDate(rawFlowSummary.latest_run);
16
+ flowSummary.averageRunDuration = rawFlowSummary.average_run_duration;
17
+ flowSummary.averagePendingDuration = rawFlowSummary.average_pending_duration;
18
+ flowSummary.runCount = rawFlowSummary.run_count;
19
+ return flowSummary;
20
+ }
21
+ }
@@ -0,0 +1,10 @@
1
+ export declare class FlowTemplate {
2
+ id: string;
3
+ name: string;
4
+ icon: string;
5
+ description: string;
6
+ source: string;
7
+ requiredTriggers: string[];
8
+ requiredAdapters: string[];
9
+ requiredChannels: string[];
10
+ }
@@ -0,0 +1,10 @@
1
+ export class FlowTemplate {
2
+ id;
3
+ name;
4
+ icon;
5
+ description;
6
+ source;
7
+ requiredTriggers;
8
+ requiredAdapters;
9
+ requiredChannels;
10
+ }
@@ -0,0 +1,17 @@
1
+ import { DataValueCollection } from '../DataValueCollection.js';
2
+ import { HealthAlertSeverity } from './HealthAlertSeverity.js';
3
+ import { HealthAlertStatus } from './HealthAlertStatus.js';
4
+ import { HealthTestType } from './HealthTestType.js';
5
+ export declare class HealthAlert {
6
+ id: string;
7
+ scopeId: string;
8
+ parentScopeId: string | null;
9
+ healthTestType: HealthTestType;
10
+ status: HealthAlertStatus;
11
+ severity: HealthAlertSeverity;
12
+ date: Date;
13
+ updated: Date;
14
+ data: DataValueCollection;
15
+ constructor(healthTestType: HealthTestType, status: HealthAlertStatus);
16
+ static parse(raw: any): HealthAlert;
17
+ }
@@ -0,0 +1,34 @@
1
+ import { Utils } from '../../Utils.js';
2
+ import { DataValueCollection } from '../DataValueCollection.js';
3
+ import { HealthAlertSeverity } from './HealthAlertSeverity.js';
4
+ import { HealthAlertStatus } from './HealthAlertStatus.js';
5
+ import { HealthTestType } from './HealthTestType.js';
6
+ export class HealthAlert {
7
+ id;
8
+ scopeId;
9
+ parentScopeId;
10
+ healthTestType;
11
+ status;
12
+ severity = HealthAlertSeverity.ERROR;
13
+ date;
14
+ updated;
15
+ data;
16
+ constructor(healthTestType, status) {
17
+ this.healthTestType = healthTestType;
18
+ this.status = status;
19
+ this.date = new Date();
20
+ this.data = new DataValueCollection();
21
+ }
22
+ static parse(raw) {
23
+ const healthAlert = new HealthAlert(HealthTestType.fromString(raw.health_test_type), HealthAlertStatus.fromString(raw.status));
24
+ healthAlert.id = raw.id;
25
+ healthAlert.scopeId = raw.scope;
26
+ healthAlert.parentScopeId = raw.parent_scope;
27
+ // severity defaults to ERROR — defensive for older API responses that don't yet send it.
28
+ healthAlert.severity = raw.severity ? HealthAlertSeverity.fromString(raw.severity) : HealthAlertSeverity.ERROR;
29
+ healthAlert.date = Utils.parseRawDate(raw.date);
30
+ healthAlert.updated = Utils.parseRawDate(raw.updated);
31
+ healthAlert.data = DataValueCollection.fromObject(raw.data);
32
+ return healthAlert;
33
+ }
34
+ }
@@ -0,0 +1,8 @@
1
+ export declare enum HealthAlertSeverity {
2
+ INFO = "info",
3
+ WARNING = "warning",
4
+ ERROR = "error"
5
+ }
6
+ export declare namespace HealthAlertSeverity {
7
+ const fromString: (input: string) => HealthAlertSeverity;
8
+ }
@@ -0,0 +1,16 @@
1
+ import { Utils } from '../../Utils.js';
2
+ export var HealthAlertSeverity;
3
+ (function (HealthAlertSeverity) {
4
+ HealthAlertSeverity["INFO"] = "info";
5
+ HealthAlertSeverity["WARNING"] = "warning";
6
+ HealthAlertSeverity["ERROR"] = "error";
7
+ })(HealthAlertSeverity || (HealthAlertSeverity = {}));
8
+ (function (HealthAlertSeverity) {
9
+ HealthAlertSeverity.fromString = (input) => {
10
+ const result = Utils.parseEnum(input, HealthAlertSeverity);
11
+ if (result === null) {
12
+ throw new Error('Unable to parse HealthAlertSeverity from string: Unknown HealthAlertSeverity "' + input + '"');
13
+ }
14
+ return result;
15
+ };
16
+ })(HealthAlertSeverity || (HealthAlertSeverity = {}));
@@ -0,0 +1,8 @@
1
+ export declare enum HealthAlertStatus {
2
+ PASSED = "pass",
3
+ SKIPPED = "skip",
4
+ FAILED = "fail"
5
+ }
6
+ export declare namespace HealthAlertStatus {
7
+ const fromString: (input: string) => HealthAlertStatus;
8
+ }
@@ -0,0 +1,16 @@
1
+ import { Utils } from '../../Utils.js';
2
+ export var HealthAlertStatus;
3
+ (function (HealthAlertStatus) {
4
+ HealthAlertStatus["PASSED"] = "pass";
5
+ HealthAlertStatus["SKIPPED"] = "skip";
6
+ HealthAlertStatus["FAILED"] = "fail";
7
+ })(HealthAlertStatus || (HealthAlertStatus = {}));
8
+ (function (HealthAlertStatus) {
9
+ HealthAlertStatus.fromString = (input) => {
10
+ const result = Utils.parseEnum(input, HealthAlertStatus);
11
+ if (result === null) {
12
+ throw new Error('Unable to parse HealthAlertStatus from string: Unknown HealthAlertStatus "' + input + '"');
13
+ }
14
+ return result;
15
+ };
16
+ })(HealthAlertStatus || (HealthAlertStatus = {}));
@@ -0,0 +1,14 @@
1
+ export declare enum HealthTestType {
2
+ PROJECT_ENVIRONMENT_HAS_WORKERS = "project_environment_has_workers",
3
+ QUEUE_FLOW_IS_HEALTHY = "queue_flow_is_healthy",
4
+ WORKER_IS_UP_TO_DATE = "worker_is_up_to_date",
5
+ ADAPTER_CONNECTION_IS_HEALTHY = "adapter_connection_is_healthy",
6
+ FLOW_RUNS_ARE_SUCCESSFUL = "flow_runs_are_successful",
7
+ STORAGE_CACHE_USAGE_WITHIN_LIMIT = "storage_cache_usage_within_limit",
8
+ STORAGE_PERSISTENT_USAGE_WITHIN_LIMIT = "storage_persistent_usage_within_limit",
9
+ STORAGE_VAULT_USAGE_WITHIN_LIMIT = "storage_vault_usage_within_limit",
10
+ STORAGE_INFRASTRUCTURE_USAGE_WITHIN_LIMIT = "storage_infrastructure_usage_within_limit"
11
+ }
12
+ export declare namespace HealthTestType {
13
+ const fromString: (input: string) => HealthTestType;
14
+ }
@@ -0,0 +1,22 @@
1
+ import { Utils } from '../../Utils.js';
2
+ export var HealthTestType;
3
+ (function (HealthTestType) {
4
+ HealthTestType["PROJECT_ENVIRONMENT_HAS_WORKERS"] = "project_environment_has_workers";
5
+ HealthTestType["QUEUE_FLOW_IS_HEALTHY"] = "queue_flow_is_healthy";
6
+ HealthTestType["WORKER_IS_UP_TO_DATE"] = "worker_is_up_to_date";
7
+ HealthTestType["ADAPTER_CONNECTION_IS_HEALTHY"] = "adapter_connection_is_healthy";
8
+ HealthTestType["FLOW_RUNS_ARE_SUCCESSFUL"] = "flow_runs_are_successful";
9
+ HealthTestType["STORAGE_CACHE_USAGE_WITHIN_LIMIT"] = "storage_cache_usage_within_limit";
10
+ HealthTestType["STORAGE_PERSISTENT_USAGE_WITHIN_LIMIT"] = "storage_persistent_usage_within_limit";
11
+ HealthTestType["STORAGE_VAULT_USAGE_WITHIN_LIMIT"] = "storage_vault_usage_within_limit";
12
+ HealthTestType["STORAGE_INFRASTRUCTURE_USAGE_WITHIN_LIMIT"] = "storage_infrastructure_usage_within_limit";
13
+ })(HealthTestType || (HealthTestType = {}));
14
+ (function (HealthTestType) {
15
+ HealthTestType.fromString = (input) => {
16
+ const result = Utils.parseEnum(input, HealthTestType);
17
+ if (result === null) {
18
+ throw new Error('Unable to parse HealthTestType from string: Unknown HealthTestType "' + input + '"');
19
+ }
20
+ return result;
21
+ };
22
+ })(HealthTestType || (HealthTestType = {}));
@@ -0,0 +1,10 @@
1
+ export declare class InboxMessage {
2
+ id: string;
3
+ userId: string;
4
+ type: string;
5
+ subject: string;
6
+ body: string;
7
+ time: Date;
8
+ acknowledged: boolean;
9
+ static parse(rawNotification: any): InboxMessage;
10
+ }