@kestra-io/kestra-sdk 0.24.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 (430) hide show
  1. package/README.md +879 -0
  2. package/dist/ApiClient.js +704 -0
  3. package/dist/KestraClient.js +97 -0
  4. package/dist/api/AIApi.js +85 -0
  5. package/dist/api/AppsApi.js +1017 -0
  6. package/dist/api/AuditLogsApi.js +253 -0
  7. package/dist/api/AuthsApi.js +236 -0
  8. package/dist/api/BannersApi.js +184 -0
  9. package/dist/api/BindingsApi.js +269 -0
  10. package/dist/api/BlueprintTagsApi.js +134 -0
  11. package/dist/api/BlueprintsApi.js +528 -0
  12. package/dist/api/ClusterApi.js +100 -0
  13. package/dist/api/DashboardsApi.js +535 -0
  14. package/dist/api/DefaultApi.js +274 -0
  15. package/dist/api/ExecutionsApi.js +2942 -0
  16. package/dist/api/FilesApi.js +471 -0
  17. package/dist/api/FlowsApi.js +1509 -0
  18. package/dist/api/GroupsApi.js +567 -0
  19. package/dist/api/InvitationsApi.js +300 -0
  20. package/dist/api/KVApi.js +280 -0
  21. package/dist/api/LogsApi.js +371 -0
  22. package/dist/api/MaintenanceApi.js +100 -0
  23. package/dist/api/MetricsApi.js +393 -0
  24. package/dist/api/MiscApi.js +385 -0
  25. package/dist/api/NamespacesApi.js +653 -0
  26. package/dist/api/PluginsApi.js +755 -0
  27. package/dist/api/RolesApi.js +352 -0
  28. package/dist/api/SCIMApi.js +815 -0
  29. package/dist/api/SCIMConfigurationApi.js +264 -0
  30. package/dist/api/SCIMGroupsApi.js +423 -0
  31. package/dist/api/SCIMUsersApi.js +423 -0
  32. package/dist/api/SecurityIntegrationsApi.js +290 -0
  33. package/dist/api/ServiceAccountApi.js +213 -0
  34. package/dist/api/ServicesApi.js +164 -0
  35. package/dist/api/TenantAccessApi.js +268 -0
  36. package/dist/api/TenantsApi.js +325 -0
  37. package/dist/api/TestSuitesApi.js +594 -0
  38. package/dist/api/TriggersApi.js +885 -0
  39. package/dist/api/UsersApi.js +894 -0
  40. package/dist/api/WorkerGroupsApi.js +224 -0
  41. package/dist/index.js +2967 -0
  42. package/dist/model/AbstractFlow.js +252 -0
  43. package/dist/model/AbstractFlowLabels.js +158 -0
  44. package/dist/model/AbstractGraph.js +110 -0
  45. package/dist/model/AbstractGraphBranchType.js +63 -0
  46. package/dist/model/AbstractMetricEntryObject.js +162 -0
  47. package/dist/model/AbstractTrigger.js +264 -0
  48. package/dist/model/AbstractTriggerForExecution.js +138 -0
  49. package/dist/model/AbstractUser.js +277 -0
  50. package/dist/model/AbstractUserTenantIdentityProvider.js +157 -0
  51. package/dist/model/Action.js +68 -0
  52. package/dist/model/ApiAuth.js +113 -0
  53. package/dist/model/ApiAutocomplete.js +101 -0
  54. package/dist/model/ApiGroupSummary.js +101 -0
  55. package/dist/model/ApiIds.js +89 -0
  56. package/dist/model/ApiRoleSummary.js +117 -0
  57. package/dist/model/ApiSecretListResponse.js +148 -0
  58. package/dist/model/ApiSecretMeta.js +112 -0
  59. package/dist/model/ApiSecretMetaEE.js +166 -0
  60. package/dist/model/ApiSecretTag.js +126 -0
  61. package/dist/model/ApiSecretValue.js +168 -0
  62. package/dist/model/ApiTenant.js +315 -0
  63. package/dist/model/ApiUser.js +361 -0
  64. package/dist/model/AppResponse.js +115 -0
  65. package/dist/model/AppResponseUILayout.js +89 -0
  66. package/dist/model/AppsControllerApiApp.js +173 -0
  67. package/dist/model/AppsControllerApiAppCatalogItem.js +137 -0
  68. package/dist/model/AppsControllerApiAppSource.js +161 -0
  69. package/dist/model/AppsControllerApiAppTags.js +89 -0
  70. package/dist/model/AppsControllerApiBulkImportResponse.js +122 -0
  71. package/dist/model/AppsControllerApiBulkImportResponseError.js +101 -0
  72. package/dist/model/AppsControllerApiBulkOperationRequest.js +89 -0
  73. package/dist/model/Assertion.js +325 -0
  74. package/dist/model/AssertionResult.js +178 -0
  75. package/dist/model/AssertionRunError.js +124 -0
  76. package/dist/model/AttributeReference.js +149 -0
  77. package/dist/model/AuditLog.js +257 -0
  78. package/dist/model/AuditLogControllerAuditLogDiff.js +101 -0
  79. package/dist/model/AuditLogControllerAuditLogOption.js +109 -0
  80. package/dist/model/AuditLogControllerAuditLogWithUser.js +105 -0
  81. package/dist/model/AuditLogControllerFindRequest.js +105 -0
  82. package/dist/model/AuditLogDetail.js +149 -0
  83. package/dist/model/AuthControllerAuth.js +105 -0
  84. package/dist/model/AuthControllerInvitationUserRequest.js +140 -0
  85. package/dist/model/AuthControllerResetPasswordRequest.js +101 -0
  86. package/dist/model/Backfill.js +180 -0
  87. package/dist/model/Banner.js +169 -0
  88. package/dist/model/BannerType.js +63 -0
  89. package/dist/model/BaseAuditLog.js +195 -0
  90. package/dist/model/BaseResourcePatchRequest.js +89 -0
  91. package/dist/model/BaseResourceScimResource.js +89 -0
  92. package/dist/model/BaseResourceSearchRequest.js +89 -0
  93. package/dist/model/Binding.js +171 -0
  94. package/dist/model/BindingType.js +58 -0
  95. package/dist/model/Blueprint.js +178 -0
  96. package/dist/model/BlueprintControllerApiBlueprintItem.js +145 -0
  97. package/dist/model/BlueprintControllerApiBlueprintItemWithSource.js +196 -0
  98. package/dist/model/BlueprintControllerApiBlueprintTagItem.js +109 -0
  99. package/dist/model/BlueprintControllerKind.js +63 -0
  100. package/dist/model/BlueprintWithFlow.js +226 -0
  101. package/dist/model/Breakpoint.js +124 -0
  102. package/dist/model/BulkErrorResponse.js +97 -0
  103. package/dist/model/BulkResponse.js +85 -0
  104. package/dist/model/Cache.js +120 -0
  105. package/dist/model/ChartChartOption.js +134 -0
  106. package/dist/model/ChartFiltersOverrides.js +164 -0
  107. package/dist/model/Concurrency.js +119 -0
  108. package/dist/model/ConcurrencyBehavior.js +63 -0
  109. package/dist/model/Condition.js +112 -0
  110. package/dist/model/ConfigurationUsage.js +133 -0
  111. package/dist/model/ConversionServiceProvider.js +108 -0
  112. package/dist/model/ConvertibleMultiValuesString.js +139 -0
  113. package/dist/model/ConvertibleValuesListString.js +126 -0
  114. package/dist/model/CreateApiTokenRequest.js +144 -0
  115. package/dist/model/CreateApiTokenResponse.js +113 -0
  116. package/dist/model/CreateSecurityIntegrationRequest.js +140 -0
  117. package/dist/model/CrudEventType.js +93 -0
  118. package/dist/model/CustomLink.js +113 -0
  119. package/dist/model/DailyExecutionStatistics.js +150 -0
  120. package/dist/model/DailyExecutionStatisticsDuration.js +164 -0
  121. package/dist/model/DailyExecutionStatisticsExecutionCounts.js +197 -0
  122. package/dist/model/Dashboard.js +180 -0
  123. package/dist/model/DashboardControllerPreviewRequest.js +126 -0
  124. package/dist/model/DeleteExecutionsByQueryRequest.js +111 -0
  125. package/dist/model/DeletedInterface.js +85 -0
  126. package/dist/model/DependsOn.js +101 -0
  127. package/dist/model/DocumentationWithSchema.js +103 -0
  128. package/dist/model/Email.js +110 -0
  129. package/dist/model/EventAppResponse.js +139 -0
  130. package/dist/model/EventExecution.js +139 -0
  131. package/dist/model/EventExecutionStatusEvent.js +139 -0
  132. package/dist/model/EventLogEntry.js +139 -0
  133. package/dist/model/ExecutableTaskSubflowId.js +109 -0
  134. package/dist/model/Execution.js +407 -0
  135. package/dist/model/ExecutionControllerApiValidateExecutionInputsResponse.js +134 -0
  136. package/dist/model/ExecutionControllerApiValidateExecutionInputsResponseApiInputAndValue.js +140 -0
  137. package/dist/model/ExecutionControllerApiValidateExecutionInputsResponseApiInputError.js +89 -0
  138. package/dist/model/ExecutionControllerEvalResult.js +113 -0
  139. package/dist/model/ExecutionControllerExecutionResponse.js +505 -0
  140. package/dist/model/ExecutionControllerLastExecutionResponse.js +130 -0
  141. package/dist/model/ExecutionControllerSetLabelsByIdsRequest.js +122 -0
  142. package/dist/model/ExecutionControllerStateRequest.js +98 -0
  143. package/dist/model/ExecutionControllerWebhookResponse.js +216 -0
  144. package/dist/model/ExecutionKind.js +63 -0
  145. package/dist/model/ExecutionMetadata.js +93 -0
  146. package/dist/model/ExecutionRepositoryInterfaceChildFilter.js +58 -0
  147. package/dist/model/ExecutionRepositoryInterfaceFlowFilter.js +126 -0
  148. package/dist/model/ExecutionStatusEvent.js +139 -0
  149. package/dist/model/ExecutionTrigger.js +148 -0
  150. package/dist/model/ExecutionUsage.js +139 -0
  151. package/dist/model/FileAttributes.js +132 -0
  152. package/dist/model/FileAttributesFileType.js +58 -0
  153. package/dist/model/FileMetas.js +108 -0
  154. package/dist/model/Filter.js +97 -0
  155. package/dist/model/Fixtures.js +144 -0
  156. package/dist/model/Flow.js +601 -0
  157. package/dist/model/FlowAllOfLabels.js +158 -0
  158. package/dist/model/FlowControllerTaskValidationType.js +58 -0
  159. package/dist/model/FlowForExecution.js +447 -0
  160. package/dist/model/FlowForExecutionAllOfLabels.js +158 -0
  161. package/dist/model/FlowGenerationPrompt.js +126 -0
  162. package/dist/model/FlowGraph.js +182 -0
  163. package/dist/model/FlowGraphCluster.js +139 -0
  164. package/dist/model/FlowGraphEdge.js +115 -0
  165. package/dist/model/FlowId.js +121 -0
  166. package/dist/model/FlowInterface.js +350 -0
  167. package/dist/model/FlowNode.js +136 -0
  168. package/dist/model/FlowRelation.js +58 -0
  169. package/dist/model/FlowScope.js +58 -0
  170. package/dist/model/FlowTopologyGraph.js +140 -0
  171. package/dist/model/FlowTopologyGraphEdge.js +110 -0
  172. package/dist/model/FlowUsage.js +123 -0
  173. package/dist/model/FlowWithSource.js +695 -0
  174. package/dist/model/FlowWithSourceAllOfLabels.js +158 -0
  175. package/dist/model/Group.js +160 -0
  176. package/dist/model/GroupIdentifier.js +118 -0
  177. package/dist/model/GroupIdentifierMembership.js +58 -0
  178. package/dist/model/GroupUsage.js +85 -0
  179. package/dist/model/HostUsage.js +131 -0
  180. package/dist/model/HostUsageHardware.js +125 -0
  181. package/dist/model/HostUsageJvm.js +113 -0
  182. package/dist/model/HostUsageOs.js +125 -0
  183. package/dist/model/HttpParameters.js +152 -0
  184. package/dist/model/IAMBindingControllerApiBindingDetail.js +152 -0
  185. package/dist/model/IAMBindingControllerApiBindingGroup.js +101 -0
  186. package/dist/model/IAMBindingControllerApiBindingSummary.js +152 -0
  187. package/dist/model/IAMBindingControllerApiBindingUser.js +122 -0
  188. package/dist/model/IAMBindingControllerApiCreateBindingRequest.js +149 -0
  189. package/dist/model/IAMBindingControllerApiRole.js +101 -0
  190. package/dist/model/IAMGroupControllerApiCreateGroupRequest.js +136 -0
  191. package/dist/model/IAMGroupControllerApiGroupDetail.js +113 -0
  192. package/dist/model/IAMGroupControllerApiGroupMember.js +146 -0
  193. package/dist/model/IAMGroupControllerApiGroupMembership.js +118 -0
  194. package/dist/model/IAMGroupControllerApiUpdateGroupRequest.js +127 -0
  195. package/dist/model/IAMInvitationControllerApiInvitationCreateRequest.js +170 -0
  196. package/dist/model/IAMInvitationControllerApiInvitationDetail.js +229 -0
  197. package/dist/model/IAMInvitationControllerApiInvitationRole.js +124 -0
  198. package/dist/model/IAMRoleControllerApiRoleCreateOrUpdateRequest.js +148 -0
  199. package/dist/model/IAMRoleControllerApiRoleCreateOrUpdateRequestPermissions.js +365 -0
  200. package/dist/model/IAMRoleControllerApiRoleDetail.js +143 -0
  201. package/dist/model/IAMServiceAccountControllerApiGroup.js +89 -0
  202. package/dist/model/IAMServiceAccountControllerApiServiceAccountRequest.js +163 -0
  203. package/dist/model/IAMServiceAccountControllerApiServiceAccountResponse.js +178 -0
  204. package/dist/model/IAMTenantAccessControllerApiAuthentication.js +101 -0
  205. package/dist/model/IAMTenantAccessControllerApiCreateTenantAccessRequest.js +112 -0
  206. package/dist/model/IAMTenantAccessControllerApiGroup.js +109 -0
  207. package/dist/model/IAMTenantAccessControllerApiRoleAssignment.js +167 -0
  208. package/dist/model/IAMTenantAccessControllerApiTenantAccess.js +196 -0
  209. package/dist/model/IAMTenantAccessControllerApiUserPermission.js +99 -0
  210. package/dist/model/IAMTenantAccessControllerApiUserTenantAccess.js +188 -0
  211. package/dist/model/IAMTenantAccessControllerUserApiAutocomplete.js +127 -0
  212. package/dist/model/IAMUserControllerApiCreateOrUpdateUserRequest.js +188 -0
  213. package/dist/model/IAMUserControllerApiGroup.js +101 -0
  214. package/dist/model/IAMUserControllerApiPatchRestrictedRequest.js +108 -0
  215. package/dist/model/IAMUserControllerApiPatchSuperAdminRequest.js +108 -0
  216. package/dist/model/IAMUserControllerApiPatchUserPasswordRequest.js +112 -0
  217. package/dist/model/IAMUserControllerApiTenant.js +101 -0
  218. package/dist/model/IAMUserControllerApiUser.js +258 -0
  219. package/dist/model/IAMUserControllerApiUserAuth.js +113 -0
  220. package/dist/model/IAMUserControllerApiUserSummary.js +184 -0
  221. package/dist/model/IAMUserGroupControllerApiUpdateUserGroupsRequest.js +89 -0
  222. package/dist/model/IdWithNamespace.js +101 -0
  223. package/dist/model/IdentityProvider.js +123 -0
  224. package/dist/model/InputObject.js +189 -0
  225. package/dist/model/InputType.js +101 -0
  226. package/dist/model/InstanceControllerApiActiveService.js +94 -0
  227. package/dist/model/InstanceControllerApiActiveServiceList.js +118 -0
  228. package/dist/model/InstanceControllerApiCreateOrUpdateWorkerGroupRequest.js +139 -0
  229. package/dist/model/InstanceControllerApiPluginArtifact.js +137 -0
  230. package/dist/model/InstanceControllerApiPluginArtifactListPluginArtifact.js +97 -0
  231. package/dist/model/InstanceControllerApiPluginArtifactListPluginResolutionResult.js +97 -0
  232. package/dist/model/InstanceControllerApiPluginListRequest.js +89 -0
  233. package/dist/model/InstanceControllerApiPluginVersionDetails.js +182 -0
  234. package/dist/model/InstanceControllerApiPluginVersionDetailsApiPluginClass.js +101 -0
  235. package/dist/model/InstanceControllerApiPluginVersionDetailsApiPluginClasses.js +122 -0
  236. package/dist/model/InstanceControllerApiPluginVersions.js +134 -0
  237. package/dist/model/InstanceControllerApiPluginVersionsApiPluginVersionAndMetadata.js +103 -0
  238. package/dist/model/InstanceControllerApiServerInstance.js +122 -0
  239. package/dist/model/InstanceControllerApiServiceInstance.js +137 -0
  240. package/dist/model/InstanceControllerApiWorkerGroup.js +129 -0
  241. package/dist/model/InstanceControllerApiWorkerGroupDetails.js +163 -0
  242. package/dist/model/InstanceControllerApiWorkerGroupItem.js +126 -0
  243. package/dist/model/InstanceControllerApiWorkerGroupList.js +112 -0
  244. package/dist/model/Invitation.js +258 -0
  245. package/dist/model/InvitationInvitationStatus.js +63 -0
  246. package/dist/model/Isolation.js +98 -0
  247. package/dist/model/KVControllerApiDeleteBulkRequest.js +89 -0
  248. package/dist/model/KVControllerApiDeleteBulkResponse.js +89 -0
  249. package/dist/model/KVControllerTypedValue.js +94 -0
  250. package/dist/model/KVEntry.js +125 -0
  251. package/dist/model/KVType.js +83 -0
  252. package/dist/model/Label.js +126 -0
  253. package/dist/model/Level.js +73 -0
  254. package/dist/model/Listener.js +172 -0
  255. package/dist/model/LogEntry.js +242 -0
  256. package/dist/model/MapObjectObject.js +85 -0
  257. package/dist/model/MeControllerApiMe.js +182 -0
  258. package/dist/model/MeControllerApiProfile.js +125 -0
  259. package/dist/model/MeControllerApiTenant.js +113 -0
  260. package/dist/model/MeControllerApiUpdatePasswordRequest.js +101 -0
  261. package/dist/model/MeControllerApiUserDetailsRequest.js +113 -0
  262. package/dist/model/Meta.js +129 -0
  263. package/dist/model/Metric.js +166 -0
  264. package/dist/model/MetricAggregation.js +130 -0
  265. package/dist/model/MetricAggregations.js +144 -0
  266. package/dist/model/MetricEntry.js +239 -0
  267. package/dist/model/MetricTag.js +101 -0
  268. package/dist/model/MiscControllerBasicAuthCredentials.js +113 -0
  269. package/dist/model/MiscControllerConfiguration.js +266 -0
  270. package/dist/model/MiscControllerEEConfiguration.js +494 -0
  271. package/dist/model/MiscControllerEnvironment.js +101 -0
  272. package/dist/model/MiscControllerLicenseInfo.js +129 -0
  273. package/dist/model/MiscControllerPluginIdAndVersion.js +101 -0
  274. package/dist/model/MiscControllerPreview.js +93 -0
  275. package/dist/model/MiscControllerTenantConfigurationInfo.js +93 -0
  276. package/dist/model/Name.js +102 -0
  277. package/dist/model/Namespace.js +350 -0
  278. package/dist/model/NamespaceAllowedNamespace.js +112 -0
  279. package/dist/model/NamespaceAllowedTrigger.js +124 -0
  280. package/dist/model/NamespaceLight.js +122 -0
  281. package/dist/model/NamespaceUsage.js +85 -0
  282. package/dist/model/NamespaceWithDisabled.js +370 -0
  283. package/dist/model/Output.js +157 -0
  284. package/dist/model/PageRequest.js +93 -0
  285. package/dist/model/PagedResultsApiGroupSummary.js +140 -0
  286. package/dist/model/PagedResultsApiRoleSummary.js +140 -0
  287. package/dist/model/PagedResultsAppsControllerApiApp.js +140 -0
  288. package/dist/model/PagedResultsAppsControllerApiAppCatalogItem.js +140 -0
  289. package/dist/model/PagedResultsAuditLogControllerAuditLogWithUser.js +140 -0
  290. package/dist/model/PagedResultsBlueprint.js +140 -0
  291. package/dist/model/PagedResultsBlueprintControllerApiBlueprintItem.js +140 -0
  292. package/dist/model/PagedResultsDashboard.js +140 -0
  293. package/dist/model/PagedResultsExecution.js +140 -0
  294. package/dist/model/PagedResultsFlow.js +140 -0
  295. package/dist/model/PagedResultsIAMBindingControllerApiBindingDetail.js +140 -0
  296. package/dist/model/PagedResultsIAMBindingControllerApiBindingSummary.js +140 -0
  297. package/dist/model/PagedResultsIAMGroupControllerApiGroupMember.js +140 -0
  298. package/dist/model/PagedResultsIAMInvitationControllerApiInvitationDetail.js +140 -0
  299. package/dist/model/PagedResultsIAMTenantAccessControllerApiUserTenantAccess.js +140 -0
  300. package/dist/model/PagedResultsIAMUserControllerApiUserSummary.js +140 -0
  301. package/dist/model/PagedResultsInstanceControllerApiPluginArtifact.js +140 -0
  302. package/dist/model/PagedResultsInstanceControllerApiServiceInstance.js +140 -0
  303. package/dist/model/PagedResultsLogEntry.js +140 -0
  304. package/dist/model/PagedResultsMapStringObject.js +124 -0
  305. package/dist/model/PagedResultsMetricEntry.js +140 -0
  306. package/dist/model/PagedResultsNamespaceWithDisabled.js +140 -0
  307. package/dist/model/PagedResultsSearchResultFlow.js +140 -0
  308. package/dist/model/PagedResultsTaskRun.js +140 -0
  309. package/dist/model/PagedResultsTenant.js +140 -0
  310. package/dist/model/PagedResultsTestSuite.js +140 -0
  311. package/dist/model/PagedResultsTrigger.js +140 -0
  312. package/dist/model/PagedResultsTriggerControllerTriggers.js +140 -0
  313. package/dist/model/PatchOperation.js +108 -0
  314. package/dist/model/PatchOperationPath.js +91 -0
  315. package/dist/model/PatchOperationType.js +63 -0
  316. package/dist/model/PatchRequest.js +132 -0
  317. package/dist/model/Permission.js +168 -0
  318. package/dist/model/Plugin.js +601 -0
  319. package/dist/model/PluginArtifact.js +149 -0
  320. package/dist/model/PluginArtifactMetadata.js +125 -0
  321. package/dist/model/PluginControllerApiPluginVersions.js +101 -0
  322. package/dist/model/PluginDefault.js +130 -0
  323. package/dist/model/PluginIcon.js +109 -0
  324. package/dist/model/PluginMetric.js +113 -0
  325. package/dist/model/PluginPluginElementMetadata.js +97 -0
  326. package/dist/model/PluginSchema.js +107 -0
  327. package/dist/model/PluginSubGroupPluginCategory.js +118 -0
  328. package/dist/model/PluginUsage.js +87 -0
  329. package/dist/model/PreviewAppRequest.js +91 -0
  330. package/dist/model/PropertyBoolean.js +97 -0
  331. package/dist/model/PropertyDouble.js +97 -0
  332. package/dist/model/PropertyDuration.js +101 -0
  333. package/dist/model/PropertyListString.js +101 -0
  334. package/dist/model/PropertyObject.js +97 -0
  335. package/dist/model/PropertyString.js +101 -0
  336. package/dist/model/QueryFilter.js +103 -0
  337. package/dist/model/QueryFilterField.js +123 -0
  338. package/dist/model/QueryFilterFieldOp.js +134 -0
  339. package/dist/model/QueryFilterOp.js +113 -0
  340. package/dist/model/QueryFilterOperation.js +101 -0
  341. package/dist/model/QueryFilterResourceField.js +122 -0
  342. package/dist/model/RBACServiceRoleAssignmentRoleOrigin.js +58 -0
  343. package/dist/model/Relation.js +98 -0
  344. package/dist/model/RelationType.js +83 -0
  345. package/dist/model/ResourceType.js +339 -0
  346. package/dist/model/ResourceTypeSchemaExtensionConfiguration.js +97 -0
  347. package/dist/model/Role.js +178 -0
  348. package/dist/model/RoleUsage.js +85 -0
  349. package/dist/model/SLA.js +148 -0
  350. package/dist/model/SLABehavior.js +63 -0
  351. package/dist/model/SLAType.js +58 -0
  352. package/dist/model/Schema.js +180 -0
  353. package/dist/model/SchemaAttribute.js +274 -0
  354. package/dist/model/SchemaAttributeMutability.js +68 -0
  355. package/dist/model/SchemaAttributeReturned.js +68 -0
  356. package/dist/model/SchemaAttributeType.js +88 -0
  357. package/dist/model/SchemaAttributeUniqueness.js +63 -0
  358. package/dist/model/SchemaType.js +88 -0
  359. package/dist/model/ScimExtension.js +89 -0
  360. package/dist/model/ScimResource.js +195 -0
  361. package/dist/model/ScimResourceWithOptionalId.js +228 -0
  362. package/dist/model/ScimUser.js +336 -0
  363. package/dist/model/SearchRequest.js +241 -0
  364. package/dist/model/SearchResultFlow.js +103 -0
  365. package/dist/model/SecurityIntegrationType.js +53 -0
  366. package/dist/model/ServerConfig.js +136 -0
  367. package/dist/model/ServerConfigLiveness.js +169 -0
  368. package/dist/model/ServerInstance.js +165 -0
  369. package/dist/model/ServerInstanceType.js +58 -0
  370. package/dist/model/ServerType.js +78 -0
  371. package/dist/model/ServiceInstance.js +232 -0
  372. package/dist/model/ServiceInstanceTimestampedEvent.js +118 -0
  373. package/dist/model/ServiceProviderConfiguration.js +384 -0
  374. package/dist/model/ServiceProviderConfigurationAuthenticationSchema.js +134 -0
  375. package/dist/model/ServiceProviderConfigurationAuthenticationSchemaType.js +73 -0
  376. package/dist/model/ServiceProviderConfigurationBulkConfiguration.js +111 -0
  377. package/dist/model/ServiceProviderConfigurationFilterConfiguration.js +103 -0
  378. package/dist/model/ServiceProviderConfigurationSupportedConfiguration.js +85 -0
  379. package/dist/model/ServiceServiceState.js +98 -0
  380. package/dist/model/ServiceType.js +73 -0
  381. package/dist/model/ServiceUsage.js +110 -0
  382. package/dist/model/ServiceUsageDailyServiceStatistics.js +122 -0
  383. package/dist/model/ServiceUsageDailyStatistics.js +109 -0
  384. package/dist/model/SetupConfiguration.js +145 -0
  385. package/dist/model/SetupConfigurationSetupData.js +115 -0
  386. package/dist/model/SortOrder.js +58 -0
  387. package/dist/model/SortRequest.js +100 -0
  388. package/dist/model/State.js +167 -0
  389. package/dist/model/StateHistory.js +119 -0
  390. package/dist/model/StateType.js +123 -0
  391. package/dist/model/Task.js +253 -0
  392. package/dist/model/TaskFixture.js +157 -0
  393. package/dist/model/TaskForExecution.js +211 -0
  394. package/dist/model/TaskRun.js +284 -0
  395. package/dist/model/TaskRunAttempt.js +168 -0
  396. package/dist/model/Tenant.js +245 -0
  397. package/dist/model/TenantInterface.js +89 -0
  398. package/dist/model/TenantUsage.js +85 -0
  399. package/dist/model/TestState.js +68 -0
  400. package/dist/model/TestSuite.js +212 -0
  401. package/dist/model/TestSuiteControllerSearchTestsLastResult.js +110 -0
  402. package/dist/model/TestSuiteControllerTestSuiteApiId.js +126 -0
  403. package/dist/model/TestSuiteControllerTestSuiteBulkRequest.js +130 -0
  404. package/dist/model/TestSuiteControllerTestsLastResultResponse.js +110 -0
  405. package/dist/model/TestSuiteRunResult.js +215 -0
  406. package/dist/model/TheLabelsToPassToTheExecutionCreated.js +158 -0
  407. package/dist/model/TimeWindow.js +101 -0
  408. package/dist/model/Trigger.js +287 -0
  409. package/dist/model/TriggerContext.js +205 -0
  410. package/dist/model/TriggerControllerSetDisabledRequest.js +140 -0
  411. package/dist/model/TriggerControllerTriggers.js +105 -0
  412. package/dist/model/TriggerFixture.js +136 -0
  413. package/dist/model/Type.js +143 -0
  414. package/dist/model/UnitTest.js +192 -0
  415. package/dist/model/UnitTestResult.js +239 -0
  416. package/dist/model/UpdateFlow200Response.js +261 -0
  417. package/dist/model/UpdateFlowsInNamespaceFromJson200Response.js +141 -0
  418. package/dist/model/Usage.js +343 -0
  419. package/dist/model/UsageEE.js +483 -0
  420. package/dist/model/UserGroup.js +122 -0
  421. package/dist/model/UserGroupType.js +58 -0
  422. package/dist/model/UserType.js +58 -0
  423. package/dist/model/UserUsage.js +138 -0
  424. package/dist/model/UsernamePasswordCredentials.js +150 -0
  425. package/dist/model/ValidateConstraintViolation.js +188 -0
  426. package/dist/model/ValuePathExpression.js +99 -0
  427. package/dist/model/WorkerGroup.js +98 -0
  428. package/dist/model/WorkerGroupFallback.js +63 -0
  429. package/dist/model/WorkerTaskRestartStrategy.js +63 -0
  430. package/package.json +46 -0
@@ -0,0 +1,755 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _DocumentationWithSchema = _interopRequireDefault(require("../model/DocumentationWithSchema"));
9
+ var _InputType = _interopRequireDefault(require("../model/InputType"));
10
+ var _InstanceControllerApiPluginArtifactListPluginArtifact = _interopRequireDefault(require("../model/InstanceControllerApiPluginArtifactListPluginArtifact"));
11
+ var _InstanceControllerApiPluginArtifactListPluginResolutionResult = _interopRequireDefault(require("../model/InstanceControllerApiPluginArtifactListPluginResolutionResult"));
12
+ var _InstanceControllerApiPluginListRequest = _interopRequireDefault(require("../model/InstanceControllerApiPluginListRequest"));
13
+ var _InstanceControllerApiPluginVersionDetails = _interopRequireDefault(require("../model/InstanceControllerApiPluginVersionDetails"));
14
+ var _InstanceControllerApiPluginVersions = _interopRequireDefault(require("../model/InstanceControllerApiPluginVersions"));
15
+ var _PagedResultsInstanceControllerApiPluginArtifact = _interopRequireDefault(require("../model/PagedResultsInstanceControllerApiPluginArtifact"));
16
+ var _Plugin = _interopRequireDefault(require("../model/Plugin"));
17
+ var _PluginArtifact = _interopRequireDefault(require("../model/PluginArtifact"));
18
+ var _PluginControllerApiPluginVersions = _interopRequireDefault(require("../model/PluginControllerApiPluginVersions"));
19
+ var _PluginIcon = _interopRequireDefault(require("../model/PluginIcon"));
20
+ var _SchemaType = _interopRequireDefault(require("../model/SchemaType"));
21
+ var _Type = _interopRequireDefault(require("../model/Type"));
22
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
23
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
24
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
25
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
26
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
27
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
28
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
29
+ * Kestra EE
30
+ * All API operations, except for Superadmin-only endpoints, require a tenant identifier in the HTTP path.<br/> Endpoints designated as Superadmin-only are not tenant-scoped.
31
+ *
32
+ * The version of the OpenAPI document: v1
33
+ *
34
+ *
35
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
36
+ * https://openapi-generator.tech
37
+ * Do not edit the class manually.
38
+ *
39
+ */
40
+ /**
41
+ * Plugins service.
42
+ * @module api/PluginsApi
43
+ * @version v0.24.0
44
+ */
45
+ var PluginsApi = exports["default"] = /*#__PURE__*/function () {
46
+ /**
47
+ * Constructs a new PluginsApi.
48
+ * @alias module:api/PluginsApi
49
+ * @class
50
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
51
+ * default to {@link module:ApiClient#instance} if unspecified.
52
+ */
53
+ function PluginsApi(apiClient) {
54
+ _classCallCheck(this, PluginsApi);
55
+ this.apiClient = apiClient || _ApiClient["default"].instance;
56
+ }
57
+
58
+ /**
59
+ * Callback function to receive the result of the getAllInputTypes operation.
60
+ * @callback module:api/PluginsApi~getAllInputTypesCallback
61
+ * @param {String} error Error message, if any.
62
+ * @param {Array.<module:model/InputType>} data The data returned by the service call.
63
+ * @param {String} response The complete HTTP response.
64
+ */
65
+
66
+ /**
67
+ * Get all types for an inputs
68
+ * @param {module:api/PluginsApi~getAllInputTypesCallback} callback The callback function, accepting three arguments: error, data, response
69
+ * data is of type: {@link Array.<module:model/InputType>}
70
+ */
71
+ return _createClass(PluginsApi, [{
72
+ key: "getAllInputTypes",
73
+ value: function getAllInputTypes(callback) {
74
+ var postBody = null;
75
+ var pathParams = {};
76
+ var queryParams = {};
77
+ var headerParams = {};
78
+ var formParams = {};
79
+ var authNames = ['basicAuth', 'bearerAuth'];
80
+ var contentTypes = [];
81
+ var accepts = ['application/json'];
82
+ var returnType = [_InputType["default"]];
83
+ return this.apiClient.callApi('/api/v1/plugins/inputs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
84
+ }
85
+
86
+ /**
87
+ * Callback function to receive the result of the getPluginBySubgroups operation.
88
+ * @callback module:api/PluginsApi~getPluginBySubgroupsCallback
89
+ * @param {String} error Error message, if any.
90
+ * @param {Array.<module:model/Plugin>} data The data returned by the service call.
91
+ * @param {String} response The complete HTTP response.
92
+ */
93
+
94
+ /**
95
+ * Get plugins group by subgroups
96
+ * @param {module:api/PluginsApi~getPluginBySubgroupsCallback} callback The callback function, accepting three arguments: error, data, response
97
+ * data is of type: {@link Array.<module:model/Plugin>}
98
+ */
99
+ }, {
100
+ key: "getPluginBySubgroups",
101
+ value: function getPluginBySubgroups(callback) {
102
+ var postBody = null;
103
+ var pathParams = {};
104
+ var queryParams = {};
105
+ var headerParams = {};
106
+ var formParams = {};
107
+ var authNames = ['basicAuth', 'bearerAuth'];
108
+ var contentTypes = [];
109
+ var accepts = ['application/json'];
110
+ var returnType = [_Plugin["default"]];
111
+ return this.apiClient.callApi('/api/v1/plugins/groups/subgroups', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
112
+ }
113
+
114
+ /**
115
+ * Callback function to receive the result of the getPluginDocumentation operation.
116
+ * @callback module:api/PluginsApi~getPluginDocumentationCallback
117
+ * @param {String} error Error message, if any.
118
+ * @param {module:model/DocumentationWithSchema} data The data returned by the service call.
119
+ * @param {String} response The complete HTTP response.
120
+ */
121
+
122
+ /**
123
+ * Get plugin documentation
124
+ * @param {String} cls The plugin full class name
125
+ * @param {Boolean} all Include all the properties
126
+ * @param {module:api/PluginsApi~getPluginDocumentationCallback} callback The callback function, accepting three arguments: error, data, response
127
+ * data is of type: {@link module:model/DocumentationWithSchema}
128
+ */
129
+ }, {
130
+ key: "getPluginDocumentation",
131
+ value: function getPluginDocumentation(cls, all, callback) {
132
+ var postBody = null;
133
+ // verify the required parameter 'cls' is set
134
+ if (cls === undefined || cls === null) {
135
+ throw new Error("Missing the required parameter 'cls' when calling getPluginDocumentation");
136
+ }
137
+ // verify the required parameter 'all' is set
138
+ if (all === undefined || all === null) {
139
+ throw new Error("Missing the required parameter 'all' when calling getPluginDocumentation");
140
+ }
141
+ var pathParams = {
142
+ 'cls': cls
143
+ };
144
+ var queryParams = {
145
+ 'all': all
146
+ };
147
+ var headerParams = {};
148
+ var formParams = {};
149
+ var authNames = ['basicAuth', 'bearerAuth'];
150
+ var contentTypes = [];
151
+ var accepts = ['application/json'];
152
+ var returnType = _DocumentationWithSchema["default"];
153
+ return this.apiClient.callApi('/api/v1/plugins/{cls}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
154
+ }
155
+
156
+ /**
157
+ * Callback function to receive the result of the getPluginDocumentationFromVersion operation.
158
+ * @callback module:api/PluginsApi~getPluginDocumentationFromVersionCallback
159
+ * @param {String} error Error message, if any.
160
+ * @param {module:model/DocumentationWithSchema} data The data returned by the service call.
161
+ * @param {String} response The complete HTTP response.
162
+ */
163
+
164
+ /**
165
+ * Get plugin documentation
166
+ * @param {String} cls The plugin type
167
+ * @param {String} version The plugin version
168
+ * @param {Boolean} all Include all the properties
169
+ * @param {module:api/PluginsApi~getPluginDocumentationFromVersionCallback} callback The callback function, accepting three arguments: error, data, response
170
+ * data is of type: {@link module:model/DocumentationWithSchema}
171
+ */
172
+ }, {
173
+ key: "getPluginDocumentationFromVersion",
174
+ value: function getPluginDocumentationFromVersion(cls, version, all, callback) {
175
+ var postBody = null;
176
+ // verify the required parameter 'cls' is set
177
+ if (cls === undefined || cls === null) {
178
+ throw new Error("Missing the required parameter 'cls' when calling getPluginDocumentationFromVersion");
179
+ }
180
+ // verify the required parameter 'version' is set
181
+ if (version === undefined || version === null) {
182
+ throw new Error("Missing the required parameter 'version' when calling getPluginDocumentationFromVersion");
183
+ }
184
+ // verify the required parameter 'all' is set
185
+ if (all === undefined || all === null) {
186
+ throw new Error("Missing the required parameter 'all' when calling getPluginDocumentationFromVersion");
187
+ }
188
+ var pathParams = {
189
+ 'cls': cls,
190
+ 'version': version
191
+ };
192
+ var queryParams = {
193
+ 'all': all
194
+ };
195
+ var headerParams = {};
196
+ var formParams = {};
197
+ var authNames = ['basicAuth', 'bearerAuth'];
198
+ var contentTypes = [];
199
+ var accepts = ['application/json'];
200
+ var returnType = _DocumentationWithSchema["default"];
201
+ return this.apiClient.callApi('/api/v1/plugins/{cls}/versions/{version}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
202
+ }
203
+
204
+ /**
205
+ * Callback function to receive the result of the getPluginGroupIcons operation.
206
+ * @callback module:api/PluginsApi~getPluginGroupIconsCallback
207
+ * @param {String} error Error message, if any.
208
+ * @param {Object.<String, module:model/{String: PluginIcon}>} data The data returned by the service call.
209
+ * @param {String} response The complete HTTP response.
210
+ */
211
+
212
+ /**
213
+ * Get plugins icons
214
+ * @param {module:api/PluginsApi~getPluginGroupIconsCallback} callback The callback function, accepting three arguments: error, data, response
215
+ * data is of type: {@link Object.<String, module:model/{String: PluginIcon}>}
216
+ */
217
+ }, {
218
+ key: "getPluginGroupIcons",
219
+ value: function getPluginGroupIcons(callback) {
220
+ var postBody = null;
221
+ var pathParams = {};
222
+ var queryParams = {};
223
+ var headerParams = {};
224
+ var formParams = {};
225
+ var authNames = ['basicAuth', 'bearerAuth'];
226
+ var contentTypes = [];
227
+ var accepts = ['application/json'];
228
+ var returnType = {
229
+ 'String': _PluginIcon["default"]
230
+ };
231
+ return this.apiClient.callApi('/api/v1/plugins/icons/groups', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
232
+ }
233
+
234
+ /**
235
+ * Callback function to receive the result of the getPluginIcons operation.
236
+ * @callback module:api/PluginsApi~getPluginIconsCallback
237
+ * @param {String} error Error message, if any.
238
+ * @param {Object.<String, module:model/{String: PluginIcon}>} data The data returned by the service call.
239
+ * @param {String} response The complete HTTP response.
240
+ */
241
+
242
+ /**
243
+ * Get plugins icons
244
+ * @param {module:api/PluginsApi~getPluginIconsCallback} callback The callback function, accepting three arguments: error, data, response
245
+ * data is of type: {@link Object.<String, module:model/{String: PluginIcon}>}
246
+ */
247
+ }, {
248
+ key: "getPluginIcons",
249
+ value: function getPluginIcons(callback) {
250
+ var postBody = null;
251
+ var pathParams = {};
252
+ var queryParams = {};
253
+ var headerParams = {};
254
+ var formParams = {};
255
+ var authNames = ['basicAuth', 'bearerAuth'];
256
+ var contentTypes = [];
257
+ var accepts = ['application/json'];
258
+ var returnType = {
259
+ 'String': _PluginIcon["default"]
260
+ };
261
+ return this.apiClient.callApi('/api/v1/plugins/icons', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
262
+ }
263
+
264
+ /**
265
+ * Callback function to receive the result of the getPluginVersions operation.
266
+ * @callback module:api/PluginsApi~getPluginVersionsCallback
267
+ * @param {String} error Error message, if any.
268
+ * @param {module:model/PluginControllerApiPluginVersions} data The data returned by the service call.
269
+ * @param {String} response The complete HTTP response.
270
+ */
271
+
272
+ /**
273
+ * Get all versions for a plugin
274
+ * @param {String} cls The plugin type
275
+ * @param {module:api/PluginsApi~getPluginVersionsCallback} callback The callback function, accepting three arguments: error, data, response
276
+ * data is of type: {@link module:model/PluginControllerApiPluginVersions}
277
+ */
278
+ }, {
279
+ key: "getPluginVersions",
280
+ value: function getPluginVersions(cls, callback) {
281
+ var postBody = null;
282
+ // verify the required parameter 'cls' is set
283
+ if (cls === undefined || cls === null) {
284
+ throw new Error("Missing the required parameter 'cls' when calling getPluginVersions");
285
+ }
286
+ var pathParams = {
287
+ 'cls': cls
288
+ };
289
+ var queryParams = {};
290
+ var headerParams = {};
291
+ var formParams = {};
292
+ var authNames = ['basicAuth', 'bearerAuth'];
293
+ var contentTypes = [];
294
+ var accepts = ['application/json'];
295
+ var returnType = _PluginControllerApiPluginVersions["default"];
296
+ return this.apiClient.callApi('/api/v1/plugins/{cls}/versions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
297
+ }
298
+
299
+ /**
300
+ * Callback function to receive the result of the getPropertiesFromType operation.
301
+ * @callback module:api/PluginsApi~getPropertiesFromTypeCallback
302
+ * @param {String} error Error message, if any.
303
+ * @param {Object.<String, {String: Object}>} data The data returned by the service call.
304
+ * @param {String} response The complete HTTP response.
305
+ */
306
+
307
+ /**
308
+ * Get the properties part of the JSON schema for a type
309
+ * The schema will be a [JSON Schema Draft 7](http://json-schema.org/draft-07/schema)
310
+ * @param {module:model/SchemaType} type The schema needed
311
+ * @param {module:api/PluginsApi~getPropertiesFromTypeCallback} callback The callback function, accepting three arguments: error, data, response
312
+ * data is of type: {@link Object.<String, {String: Object}>}
313
+ */
314
+ }, {
315
+ key: "getPropertiesFromType",
316
+ value: function getPropertiesFromType(type, callback) {
317
+ var postBody = null;
318
+ // verify the required parameter 'type' is set
319
+ if (type === undefined || type === null) {
320
+ throw new Error("Missing the required parameter 'type' when calling getPropertiesFromType");
321
+ }
322
+ var pathParams = {
323
+ 'type': type
324
+ };
325
+ var queryParams = {};
326
+ var headerParams = {};
327
+ var formParams = {};
328
+ var authNames = ['basicAuth', 'bearerAuth'];
329
+ var contentTypes = [];
330
+ var accepts = ['application/json'];
331
+ var returnType = {
332
+ 'String': Object
333
+ };
334
+ return this.apiClient.callApi('/api/v1/plugins/properties/{type}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
335
+ }
336
+
337
+ /**
338
+ * Callback function to receive the result of the getSchemaFromInputType operation.
339
+ * @callback module:api/PluginsApi~getSchemaFromInputTypeCallback
340
+ * @param {String} error Error message, if any.
341
+ * @param {module:model/DocumentationWithSchema} data The data returned by the service call.
342
+ * @param {String} response The complete HTTP response.
343
+ */
344
+
345
+ /**
346
+ * Get the JSON schema for an input type
347
+ * The schema will be a [JSON Schema Draft 7](http://json-schema.org/draft-07/schema)
348
+ * @param {module:model/Type} type The schema needed
349
+ * @param {module:api/PluginsApi~getSchemaFromInputTypeCallback} callback The callback function, accepting three arguments: error, data, response
350
+ * data is of type: {@link module:model/DocumentationWithSchema}
351
+ */
352
+ }, {
353
+ key: "getSchemaFromInputType",
354
+ value: function getSchemaFromInputType(type, callback) {
355
+ var postBody = null;
356
+ // verify the required parameter 'type' is set
357
+ if (type === undefined || type === null) {
358
+ throw new Error("Missing the required parameter 'type' when calling getSchemaFromInputType");
359
+ }
360
+ var pathParams = {
361
+ 'type': type
362
+ };
363
+ var queryParams = {};
364
+ var headerParams = {};
365
+ var formParams = {};
366
+ var authNames = ['basicAuth', 'bearerAuth'];
367
+ var contentTypes = [];
368
+ var accepts = ['application/json'];
369
+ var returnType = _DocumentationWithSchema["default"];
370
+ return this.apiClient.callApi('/api/v1/plugins/inputs/{type}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
371
+ }
372
+
373
+ /**
374
+ * Callback function to receive the result of the getSchemasFromType operation.
375
+ * @callback module:api/PluginsApi~getSchemasFromTypeCallback
376
+ * @param {String} error Error message, if any.
377
+ * @param {Object.<String, {String: Object}>} data The data returned by the service call.
378
+ * @param {String} response The complete HTTP response.
379
+ */
380
+
381
+ /**
382
+ * Get the JSON schema for a type
383
+ * The schema will be a [JSON Schema Draft 7](http://json-schema.org/draft-07/schema)
384
+ * @param {module:model/SchemaType} type The schema needed
385
+ * @param {Boolean} arrayOf If schema should be an array of requested type
386
+ * @param {module:api/PluginsApi~getSchemasFromTypeCallback} callback The callback function, accepting three arguments: error, data, response
387
+ * data is of type: {@link Object.<String, {String: Object}>}
388
+ */
389
+ }, {
390
+ key: "getSchemasFromType",
391
+ value: function getSchemasFromType(type, arrayOf, callback) {
392
+ var postBody = null;
393
+ // verify the required parameter 'type' is set
394
+ if (type === undefined || type === null) {
395
+ throw new Error("Missing the required parameter 'type' when calling getSchemasFromType");
396
+ }
397
+ // verify the required parameter 'arrayOf' is set
398
+ if (arrayOf === undefined || arrayOf === null) {
399
+ throw new Error("Missing the required parameter 'arrayOf' when calling getSchemasFromType");
400
+ }
401
+ var pathParams = {
402
+ 'type': type
403
+ };
404
+ var queryParams = {
405
+ 'arrayOf': arrayOf
406
+ };
407
+ var headerParams = {};
408
+ var formParams = {};
409
+ var authNames = ['basicAuth', 'bearerAuth'];
410
+ var contentTypes = [];
411
+ var accepts = ['application/json'];
412
+ var returnType = {
413
+ 'String': Object
414
+ };
415
+ return this.apiClient.callApi('/api/v1/plugins/schemas/{type}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
416
+ }
417
+
418
+ /**
419
+ * Callback function to receive the result of the getVersionedPluginDetails operation.
420
+ * @callback module:api/PluginsApi~getVersionedPluginDetailsCallback
421
+ * @param {String} error Error message, if any.
422
+ * @param {module:model/InstanceControllerApiPluginVersions} data The data returned by the service call.
423
+ * @param {String} response The complete HTTP response.
424
+ */
425
+
426
+ /**
427
+ * Retrieve details of a plugin artifact
428
+ * Superadmin-only. Retrieves metadata and available versions for a given plugin artifact. Requires INFRASTRUCTURE permission.
429
+ * @param {String} groupId
430
+ * @param {String} artifactId
431
+ * @param {module:api/PluginsApi~getVersionedPluginDetailsCallback} callback The callback function, accepting three arguments: error, data, response
432
+ * data is of type: {@link module:model/InstanceControllerApiPluginVersions}
433
+ */
434
+ }, {
435
+ key: "getVersionedPluginDetails",
436
+ value: function getVersionedPluginDetails(groupId, artifactId, callback) {
437
+ var postBody = null;
438
+ // verify the required parameter 'groupId' is set
439
+ if (groupId === undefined || groupId === null) {
440
+ throw new Error("Missing the required parameter 'groupId' when calling getVersionedPluginDetails");
441
+ }
442
+ // verify the required parameter 'artifactId' is set
443
+ if (artifactId === undefined || artifactId === null) {
444
+ throw new Error("Missing the required parameter 'artifactId' when calling getVersionedPluginDetails");
445
+ }
446
+ var pathParams = {
447
+ 'groupId': groupId,
448
+ 'artifactId': artifactId
449
+ };
450
+ var queryParams = {};
451
+ var headerParams = {};
452
+ var formParams = {};
453
+ var authNames = ['basicAuth', 'bearerAuth'];
454
+ var contentTypes = [];
455
+ var accepts = ['application/json'];
456
+ var returnType = _InstanceControllerApiPluginVersions["default"];
457
+ return this.apiClient.callApi('/api/v1/instance/versioned-plugins/{groupId}/{artifactId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
458
+ }
459
+
460
+ /**
461
+ * Callback function to receive the result of the getVersionedPluginDetailsFromVersion operation.
462
+ * @callback module:api/PluginsApi~getVersionedPluginDetailsFromVersionCallback
463
+ * @param {String} error Error message, if any.
464
+ * @param {module:model/InstanceControllerApiPluginVersionDetails} data The data returned by the service call.
465
+ * @param {String} response The complete HTTP response.
466
+ */
467
+
468
+ /**
469
+ * Retrieve details of a specific plugin artifact version
470
+ * Superadmin-only. Retrieves metadata for a specific version of a plugin artifact. Requires INFRASTRUCTURE permission.
471
+ * @param {String} groupId
472
+ * @param {String} artifactId
473
+ * @param {String} version
474
+ * @param {module:api/PluginsApi~getVersionedPluginDetailsFromVersionCallback} callback The callback function, accepting three arguments: error, data, response
475
+ * data is of type: {@link module:model/InstanceControllerApiPluginVersionDetails}
476
+ */
477
+ }, {
478
+ key: "getVersionedPluginDetailsFromVersion",
479
+ value: function getVersionedPluginDetailsFromVersion(groupId, artifactId, version, callback) {
480
+ var postBody = null;
481
+ // verify the required parameter 'groupId' is set
482
+ if (groupId === undefined || groupId === null) {
483
+ throw new Error("Missing the required parameter 'groupId' when calling getVersionedPluginDetailsFromVersion");
484
+ }
485
+ // verify the required parameter 'artifactId' is set
486
+ if (artifactId === undefined || artifactId === null) {
487
+ throw new Error("Missing the required parameter 'artifactId' when calling getVersionedPluginDetailsFromVersion");
488
+ }
489
+ // verify the required parameter 'version' is set
490
+ if (version === undefined || version === null) {
491
+ throw new Error("Missing the required parameter 'version' when calling getVersionedPluginDetailsFromVersion");
492
+ }
493
+ var pathParams = {
494
+ 'groupId': groupId,
495
+ 'artifactId': artifactId,
496
+ 'version': version
497
+ };
498
+ var queryParams = {};
499
+ var headerParams = {};
500
+ var formParams = {};
501
+ var authNames = ['basicAuth', 'bearerAuth'];
502
+ var contentTypes = [];
503
+ var accepts = ['application/json'];
504
+ var returnType = _InstanceControllerApiPluginVersionDetails["default"];
505
+ return this.apiClient.callApi('/api/v1/instance/versioned-plugins/{groupId}/{artifactId}/{version}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
506
+ }
507
+
508
+ /**
509
+ * Callback function to receive the result of the installVersionedPlugins operation.
510
+ * @callback module:api/PluginsApi~installVersionedPluginsCallback
511
+ * @param {String} error Error message, if any.
512
+ * @param {module:model/InstanceControllerApiPluginArtifactListPluginArtifact} data The data returned by the service call.
513
+ * @param {String} response The complete HTTP response.
514
+ */
515
+
516
+ /**
517
+ * Install specified plugin artifacts
518
+ * Superadmin-only. Installs one or more plugin artifacts. Requires INFRASTRUCTURE permission.
519
+ * @param {module:model/InstanceControllerApiPluginListRequest} instanceControllerApiPluginListRequest List of plugins
520
+ * @param {module:api/PluginsApi~installVersionedPluginsCallback} callback The callback function, accepting three arguments: error, data, response
521
+ * data is of type: {@link module:model/InstanceControllerApiPluginArtifactListPluginArtifact}
522
+ */
523
+ }, {
524
+ key: "installVersionedPlugins",
525
+ value: function installVersionedPlugins(instanceControllerApiPluginListRequest, callback) {
526
+ var postBody = instanceControllerApiPluginListRequest;
527
+ // verify the required parameter 'instanceControllerApiPluginListRequest' is set
528
+ if (instanceControllerApiPluginListRequest === undefined || instanceControllerApiPluginListRequest === null) {
529
+ throw new Error("Missing the required parameter 'instanceControllerApiPluginListRequest' when calling installVersionedPlugins");
530
+ }
531
+ var pathParams = {};
532
+ var queryParams = {};
533
+ var headerParams = {};
534
+ var formParams = {};
535
+ var authNames = ['basicAuth', 'bearerAuth'];
536
+ var contentTypes = ['application/json'];
537
+ var accepts = ['application/json'];
538
+ var returnType = _InstanceControllerApiPluginArtifactListPluginArtifact["default"];
539
+ return this.apiClient.callApi('/api/v1/instance/versioned-plugins/install', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
540
+ }
541
+
542
+ /**
543
+ * Callback function to receive the result of the listAvailableVersionedPlugins operation.
544
+ * @callback module:api/PluginsApi~listAvailableVersionedPluginsCallback
545
+ * @param {String} error Error message, if any.
546
+ * @param {Object} data The data returned by the service call.
547
+ * @param {String} response The complete HTTP response.
548
+ */
549
+
550
+ /**
551
+ * List available plugin artifacts
552
+ * Superadmin-only. Lists all plugin artifacts available for installation. Requires INFRASTRUCTURE permission.
553
+ * @param {module:api/PluginsApi~listAvailableVersionedPluginsCallback} callback The callback function, accepting three arguments: error, data, response
554
+ * data is of type: {@link Object}
555
+ */
556
+ }, {
557
+ key: "listAvailableVersionedPlugins",
558
+ value: function listAvailableVersionedPlugins(callback) {
559
+ var postBody = null;
560
+ var pathParams = {};
561
+ var queryParams = {};
562
+ var headerParams = {};
563
+ var formParams = {};
564
+ var authNames = ['basicAuth', 'bearerAuth'];
565
+ var contentTypes = [];
566
+ var accepts = ['application/json'];
567
+ var returnType = Object;
568
+ return this.apiClient.callApi('/api/v1/instance/versioned-plugins/available', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
569
+ }
570
+
571
+ /**
572
+ * Callback function to receive the result of the listPlugins operation.
573
+ * @callback module:api/PluginsApi~listPluginsCallback
574
+ * @param {String} error Error message, if any.
575
+ * @param {Array.<module:model/Plugin>} data The data returned by the service call.
576
+ * @param {String} response The complete HTTP response.
577
+ */
578
+
579
+ /**
580
+ * Get list of plugins
581
+ * @param {module:api/PluginsApi~listPluginsCallback} callback The callback function, accepting three arguments: error, data, response
582
+ * data is of type: {@link Array.<module:model/Plugin>}
583
+ */
584
+ }, {
585
+ key: "listPlugins",
586
+ value: function listPlugins(callback) {
587
+ var postBody = null;
588
+ var pathParams = {};
589
+ var queryParams = {};
590
+ var headerParams = {};
591
+ var formParams = {};
592
+ var authNames = ['basicAuth', 'bearerAuth'];
593
+ var contentTypes = [];
594
+ var accepts = ['application/json'];
595
+ var returnType = [_Plugin["default"]];
596
+ return this.apiClient.callApi('/api/v1/plugins', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
597
+ }
598
+
599
+ /**
600
+ * Callback function to receive the result of the listVersionedPlugin operation.
601
+ * @callback module:api/PluginsApi~listVersionedPluginCallback
602
+ * @param {String} error Error message, if any.
603
+ * @param {module:model/PagedResultsInstanceControllerApiPluginArtifact} data The data returned by the service call.
604
+ * @param {String} response The complete HTTP response.
605
+ */
606
+
607
+ /**
608
+ * List installed plugin artifacts
609
+ * Superadmin-only. Lists all currently installed plugin artifacts. Requires INFRASTRUCTURE permission.
610
+ * @param {Number} page The current page
611
+ * @param {Number} size The current page size
612
+ * @param {Object} opts Optional parameters
613
+ * @param {Array.<String>} [sort] The sort of current page
614
+ * @param {String} [q] The query
615
+ * @param {module:api/PluginsApi~listVersionedPluginCallback} callback The callback function, accepting three arguments: error, data, response
616
+ * data is of type: {@link module:model/PagedResultsInstanceControllerApiPluginArtifact}
617
+ */
618
+ }, {
619
+ key: "listVersionedPlugin",
620
+ value: function listVersionedPlugin(page, size, opts, callback) {
621
+ opts = opts || {};
622
+ var postBody = null;
623
+ // verify the required parameter 'page' is set
624
+ if (page === undefined || page === null) {
625
+ throw new Error("Missing the required parameter 'page' when calling listVersionedPlugin");
626
+ }
627
+ // verify the required parameter 'size' is set
628
+ if (size === undefined || size === null) {
629
+ throw new Error("Missing the required parameter 'size' when calling listVersionedPlugin");
630
+ }
631
+ var pathParams = {};
632
+ var queryParams = {
633
+ 'page': page,
634
+ 'size': size,
635
+ 'sort': this.apiClient.buildCollectionParam(opts['sort'], 'csv'),
636
+ 'q': opts['q']
637
+ };
638
+ var headerParams = {};
639
+ var formParams = {};
640
+ var authNames = ['basicAuth', 'bearerAuth'];
641
+ var contentTypes = [];
642
+ var accepts = ['application/json'];
643
+ var returnType = _PagedResultsInstanceControllerApiPluginArtifact["default"];
644
+ return this.apiClient.callApi('/api/v1/instance/versioned-plugins', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
645
+ }
646
+
647
+ /**
648
+ * Callback function to receive the result of the resolveVersionedPlugins operation.
649
+ * @callback module:api/PluginsApi~resolveVersionedPluginsCallback
650
+ * @param {String} error Error message, if any.
651
+ * @param {module:model/InstanceControllerApiPluginArtifactListPluginResolutionResult} data The data returned by the service call.
652
+ * @param {String} response The complete HTTP response.
653
+ */
654
+
655
+ /**
656
+ * Resolve versions for specified plugin artifacts
657
+ * Superadmin-only. Resolves compatible versions for a list of plugin artifacts. Requires INFRASTRUCTURE permission.
658
+ * @param {module:model/InstanceControllerApiPluginListRequest} instanceControllerApiPluginListRequest List of plugins
659
+ * @param {module:api/PluginsApi~resolveVersionedPluginsCallback} callback The callback function, accepting three arguments: error, data, response
660
+ * data is of type: {@link module:model/InstanceControllerApiPluginArtifactListPluginResolutionResult}
661
+ */
662
+ }, {
663
+ key: "resolveVersionedPlugins",
664
+ value: function resolveVersionedPlugins(instanceControllerApiPluginListRequest, callback) {
665
+ var postBody = instanceControllerApiPluginListRequest;
666
+ // verify the required parameter 'instanceControllerApiPluginListRequest' is set
667
+ if (instanceControllerApiPluginListRequest === undefined || instanceControllerApiPluginListRequest === null) {
668
+ throw new Error("Missing the required parameter 'instanceControllerApiPluginListRequest' when calling resolveVersionedPlugins");
669
+ }
670
+ var pathParams = {};
671
+ var queryParams = {};
672
+ var headerParams = {};
673
+ var formParams = {};
674
+ var authNames = ['basicAuth', 'bearerAuth'];
675
+ var contentTypes = ['application/json'];
676
+ var accepts = ['application/json'];
677
+ var returnType = _InstanceControllerApiPluginArtifactListPluginResolutionResult["default"];
678
+ return this.apiClient.callApi('/api/v1/instance/versioned-plugins/resolve', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
679
+ }
680
+
681
+ /**
682
+ * Callback function to receive the result of the uninstallVersionedPlugins operation.
683
+ * @callback module:api/PluginsApi~uninstallVersionedPluginsCallback
684
+ * @param {String} error Error message, if any.
685
+ * @param {module:model/InstanceControllerApiPluginArtifactListPluginArtifact} data The data returned by the service call.
686
+ * @param {String} response The complete HTTP response.
687
+ */
688
+
689
+ /**
690
+ * Uninstall plugin artifacts
691
+ * Superadmin-only. Uninstalls one or more plugin artifacts. Requires INFRASTRUCTURE permission.
692
+ * @param {module:model/InstanceControllerApiPluginListRequest} instanceControllerApiPluginListRequest List of plugins
693
+ * @param {module:api/PluginsApi~uninstallVersionedPluginsCallback} callback The callback function, accepting three arguments: error, data, response
694
+ * data is of type: {@link module:model/InstanceControllerApiPluginArtifactListPluginArtifact}
695
+ */
696
+ }, {
697
+ key: "uninstallVersionedPlugins",
698
+ value: function uninstallVersionedPlugins(instanceControllerApiPluginListRequest, callback) {
699
+ var postBody = instanceControllerApiPluginListRequest;
700
+ // verify the required parameter 'instanceControllerApiPluginListRequest' is set
701
+ if (instanceControllerApiPluginListRequest === undefined || instanceControllerApiPluginListRequest === null) {
702
+ throw new Error("Missing the required parameter 'instanceControllerApiPluginListRequest' when calling uninstallVersionedPlugins");
703
+ }
704
+ var pathParams = {};
705
+ var queryParams = {};
706
+ var headerParams = {};
707
+ var formParams = {};
708
+ var authNames = ['basicAuth', 'bearerAuth'];
709
+ var contentTypes = ['application/json'];
710
+ var accepts = ['application/json'];
711
+ var returnType = _InstanceControllerApiPluginArtifactListPluginArtifact["default"];
712
+ return this.apiClient.callApi('/api/v1/instance/versioned-plugins/uninstall', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
713
+ }
714
+
715
+ /**
716
+ * Callback function to receive the result of the uploadVersionedPlugins operation.
717
+ * @callback module:api/PluginsApi~uploadVersionedPluginsCallback
718
+ * @param {String} error Error message, if any.
719
+ * @param {module:model/PluginArtifact} data The data returned by the service call.
720
+ * @param {String} response The complete HTTP response.
721
+ */
722
+
723
+ /**
724
+ * Upload a plugin artifact JAR file
725
+ * Superadmin-only. Uploads a plugin JAR file for installation. Requires INFRASTRUCTURE permission.
726
+ * @param {File} file
727
+ * @param {Object} opts Optional parameters
728
+ * @param {Boolean} [forceInstallOnExistingVersions]
729
+ * @param {module:api/PluginsApi~uploadVersionedPluginsCallback} callback The callback function, accepting three arguments: error, data, response
730
+ * data is of type: {@link module:model/PluginArtifact}
731
+ */
732
+ }, {
733
+ key: "uploadVersionedPlugins",
734
+ value: function uploadVersionedPlugins(file, opts, callback) {
735
+ opts = opts || {};
736
+ var postBody = null;
737
+ // verify the required parameter 'file' is set
738
+ if (file === undefined || file === null) {
739
+ throw new Error("Missing the required parameter 'file' when calling uploadVersionedPlugins");
740
+ }
741
+ var pathParams = {};
742
+ var queryParams = {};
743
+ var headerParams = {};
744
+ var formParams = {
745
+ 'file': file,
746
+ 'forceInstallOnExistingVersions': opts['forceInstallOnExistingVersions']
747
+ };
748
+ var authNames = ['basicAuth', 'bearerAuth'];
749
+ var contentTypes = ['multipart/form-data'];
750
+ var accepts = ['application/json'];
751
+ var returnType = _PluginArtifact["default"];
752
+ return this.apiClient.callApi('/api/v1/instance/versioned-plugins/upload', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
753
+ }
754
+ }]);
755
+ }();