@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.
- package/README.md +879 -0
- package/dist/ApiClient.js +704 -0
- package/dist/KestraClient.js +97 -0
- package/dist/api/AIApi.js +85 -0
- package/dist/api/AppsApi.js +1017 -0
- package/dist/api/AuditLogsApi.js +253 -0
- package/dist/api/AuthsApi.js +236 -0
- package/dist/api/BannersApi.js +184 -0
- package/dist/api/BindingsApi.js +269 -0
- package/dist/api/BlueprintTagsApi.js +134 -0
- package/dist/api/BlueprintsApi.js +528 -0
- package/dist/api/ClusterApi.js +100 -0
- package/dist/api/DashboardsApi.js +535 -0
- package/dist/api/DefaultApi.js +274 -0
- package/dist/api/ExecutionsApi.js +2942 -0
- package/dist/api/FilesApi.js +471 -0
- package/dist/api/FlowsApi.js +1509 -0
- package/dist/api/GroupsApi.js +567 -0
- package/dist/api/InvitationsApi.js +300 -0
- package/dist/api/KVApi.js +280 -0
- package/dist/api/LogsApi.js +371 -0
- package/dist/api/MaintenanceApi.js +100 -0
- package/dist/api/MetricsApi.js +393 -0
- package/dist/api/MiscApi.js +385 -0
- package/dist/api/NamespacesApi.js +653 -0
- package/dist/api/PluginsApi.js +755 -0
- package/dist/api/RolesApi.js +352 -0
- package/dist/api/SCIMApi.js +815 -0
- package/dist/api/SCIMConfigurationApi.js +264 -0
- package/dist/api/SCIMGroupsApi.js +423 -0
- package/dist/api/SCIMUsersApi.js +423 -0
- package/dist/api/SecurityIntegrationsApi.js +290 -0
- package/dist/api/ServiceAccountApi.js +213 -0
- package/dist/api/ServicesApi.js +164 -0
- package/dist/api/TenantAccessApi.js +268 -0
- package/dist/api/TenantsApi.js +325 -0
- package/dist/api/TestSuitesApi.js +594 -0
- package/dist/api/TriggersApi.js +885 -0
- package/dist/api/UsersApi.js +894 -0
- package/dist/api/WorkerGroupsApi.js +224 -0
- package/dist/index.js +2967 -0
- package/dist/model/AbstractFlow.js +252 -0
- package/dist/model/AbstractFlowLabels.js +158 -0
- package/dist/model/AbstractGraph.js +110 -0
- package/dist/model/AbstractGraphBranchType.js +63 -0
- package/dist/model/AbstractMetricEntryObject.js +162 -0
- package/dist/model/AbstractTrigger.js +264 -0
- package/dist/model/AbstractTriggerForExecution.js +138 -0
- package/dist/model/AbstractUser.js +277 -0
- package/dist/model/AbstractUserTenantIdentityProvider.js +157 -0
- package/dist/model/Action.js +68 -0
- package/dist/model/ApiAuth.js +113 -0
- package/dist/model/ApiAutocomplete.js +101 -0
- package/dist/model/ApiGroupSummary.js +101 -0
- package/dist/model/ApiIds.js +89 -0
- package/dist/model/ApiRoleSummary.js +117 -0
- package/dist/model/ApiSecretListResponse.js +148 -0
- package/dist/model/ApiSecretMeta.js +112 -0
- package/dist/model/ApiSecretMetaEE.js +166 -0
- package/dist/model/ApiSecretTag.js +126 -0
- package/dist/model/ApiSecretValue.js +168 -0
- package/dist/model/ApiTenant.js +315 -0
- package/dist/model/ApiUser.js +361 -0
- package/dist/model/AppResponse.js +115 -0
- package/dist/model/AppResponseUILayout.js +89 -0
- package/dist/model/AppsControllerApiApp.js +173 -0
- package/dist/model/AppsControllerApiAppCatalogItem.js +137 -0
- package/dist/model/AppsControllerApiAppSource.js +161 -0
- package/dist/model/AppsControllerApiAppTags.js +89 -0
- package/dist/model/AppsControllerApiBulkImportResponse.js +122 -0
- package/dist/model/AppsControllerApiBulkImportResponseError.js +101 -0
- package/dist/model/AppsControllerApiBulkOperationRequest.js +89 -0
- package/dist/model/Assertion.js +325 -0
- package/dist/model/AssertionResult.js +178 -0
- package/dist/model/AssertionRunError.js +124 -0
- package/dist/model/AttributeReference.js +149 -0
- package/dist/model/AuditLog.js +257 -0
- package/dist/model/AuditLogControllerAuditLogDiff.js +101 -0
- package/dist/model/AuditLogControllerAuditLogOption.js +109 -0
- package/dist/model/AuditLogControllerAuditLogWithUser.js +105 -0
- package/dist/model/AuditLogControllerFindRequest.js +105 -0
- package/dist/model/AuditLogDetail.js +149 -0
- package/dist/model/AuthControllerAuth.js +105 -0
- package/dist/model/AuthControllerInvitationUserRequest.js +140 -0
- package/dist/model/AuthControllerResetPasswordRequest.js +101 -0
- package/dist/model/Backfill.js +180 -0
- package/dist/model/Banner.js +169 -0
- package/dist/model/BannerType.js +63 -0
- package/dist/model/BaseAuditLog.js +195 -0
- package/dist/model/BaseResourcePatchRequest.js +89 -0
- package/dist/model/BaseResourceScimResource.js +89 -0
- package/dist/model/BaseResourceSearchRequest.js +89 -0
- package/dist/model/Binding.js +171 -0
- package/dist/model/BindingType.js +58 -0
- package/dist/model/Blueprint.js +178 -0
- package/dist/model/BlueprintControllerApiBlueprintItem.js +145 -0
- package/dist/model/BlueprintControllerApiBlueprintItemWithSource.js +196 -0
- package/dist/model/BlueprintControllerApiBlueprintTagItem.js +109 -0
- package/dist/model/BlueprintControllerKind.js +63 -0
- package/dist/model/BlueprintWithFlow.js +226 -0
- package/dist/model/Breakpoint.js +124 -0
- package/dist/model/BulkErrorResponse.js +97 -0
- package/dist/model/BulkResponse.js +85 -0
- package/dist/model/Cache.js +120 -0
- package/dist/model/ChartChartOption.js +134 -0
- package/dist/model/ChartFiltersOverrides.js +164 -0
- package/dist/model/Concurrency.js +119 -0
- package/dist/model/ConcurrencyBehavior.js +63 -0
- package/dist/model/Condition.js +112 -0
- package/dist/model/ConfigurationUsage.js +133 -0
- package/dist/model/ConversionServiceProvider.js +108 -0
- package/dist/model/ConvertibleMultiValuesString.js +139 -0
- package/dist/model/ConvertibleValuesListString.js +126 -0
- package/dist/model/CreateApiTokenRequest.js +144 -0
- package/dist/model/CreateApiTokenResponse.js +113 -0
- package/dist/model/CreateSecurityIntegrationRequest.js +140 -0
- package/dist/model/CrudEventType.js +93 -0
- package/dist/model/CustomLink.js +113 -0
- package/dist/model/DailyExecutionStatistics.js +150 -0
- package/dist/model/DailyExecutionStatisticsDuration.js +164 -0
- package/dist/model/DailyExecutionStatisticsExecutionCounts.js +197 -0
- package/dist/model/Dashboard.js +180 -0
- package/dist/model/DashboardControllerPreviewRequest.js +126 -0
- package/dist/model/DeleteExecutionsByQueryRequest.js +111 -0
- package/dist/model/DeletedInterface.js +85 -0
- package/dist/model/DependsOn.js +101 -0
- package/dist/model/DocumentationWithSchema.js +103 -0
- package/dist/model/Email.js +110 -0
- package/dist/model/EventAppResponse.js +139 -0
- package/dist/model/EventExecution.js +139 -0
- package/dist/model/EventExecutionStatusEvent.js +139 -0
- package/dist/model/EventLogEntry.js +139 -0
- package/dist/model/ExecutableTaskSubflowId.js +109 -0
- package/dist/model/Execution.js +407 -0
- package/dist/model/ExecutionControllerApiValidateExecutionInputsResponse.js +134 -0
- package/dist/model/ExecutionControllerApiValidateExecutionInputsResponseApiInputAndValue.js +140 -0
- package/dist/model/ExecutionControllerApiValidateExecutionInputsResponseApiInputError.js +89 -0
- package/dist/model/ExecutionControllerEvalResult.js +113 -0
- package/dist/model/ExecutionControllerExecutionResponse.js +505 -0
- package/dist/model/ExecutionControllerLastExecutionResponse.js +130 -0
- package/dist/model/ExecutionControllerSetLabelsByIdsRequest.js +122 -0
- package/dist/model/ExecutionControllerStateRequest.js +98 -0
- package/dist/model/ExecutionControllerWebhookResponse.js +216 -0
- package/dist/model/ExecutionKind.js +63 -0
- package/dist/model/ExecutionMetadata.js +93 -0
- package/dist/model/ExecutionRepositoryInterfaceChildFilter.js +58 -0
- package/dist/model/ExecutionRepositoryInterfaceFlowFilter.js +126 -0
- package/dist/model/ExecutionStatusEvent.js +139 -0
- package/dist/model/ExecutionTrigger.js +148 -0
- package/dist/model/ExecutionUsage.js +139 -0
- package/dist/model/FileAttributes.js +132 -0
- package/dist/model/FileAttributesFileType.js +58 -0
- package/dist/model/FileMetas.js +108 -0
- package/dist/model/Filter.js +97 -0
- package/dist/model/Fixtures.js +144 -0
- package/dist/model/Flow.js +601 -0
- package/dist/model/FlowAllOfLabels.js +158 -0
- package/dist/model/FlowControllerTaskValidationType.js +58 -0
- package/dist/model/FlowForExecution.js +447 -0
- package/dist/model/FlowForExecutionAllOfLabels.js +158 -0
- package/dist/model/FlowGenerationPrompt.js +126 -0
- package/dist/model/FlowGraph.js +182 -0
- package/dist/model/FlowGraphCluster.js +139 -0
- package/dist/model/FlowGraphEdge.js +115 -0
- package/dist/model/FlowId.js +121 -0
- package/dist/model/FlowInterface.js +350 -0
- package/dist/model/FlowNode.js +136 -0
- package/dist/model/FlowRelation.js +58 -0
- package/dist/model/FlowScope.js +58 -0
- package/dist/model/FlowTopologyGraph.js +140 -0
- package/dist/model/FlowTopologyGraphEdge.js +110 -0
- package/dist/model/FlowUsage.js +123 -0
- package/dist/model/FlowWithSource.js +695 -0
- package/dist/model/FlowWithSourceAllOfLabels.js +158 -0
- package/dist/model/Group.js +160 -0
- package/dist/model/GroupIdentifier.js +118 -0
- package/dist/model/GroupIdentifierMembership.js +58 -0
- package/dist/model/GroupUsage.js +85 -0
- package/dist/model/HostUsage.js +131 -0
- package/dist/model/HostUsageHardware.js +125 -0
- package/dist/model/HostUsageJvm.js +113 -0
- package/dist/model/HostUsageOs.js +125 -0
- package/dist/model/HttpParameters.js +152 -0
- package/dist/model/IAMBindingControllerApiBindingDetail.js +152 -0
- package/dist/model/IAMBindingControllerApiBindingGroup.js +101 -0
- package/dist/model/IAMBindingControllerApiBindingSummary.js +152 -0
- package/dist/model/IAMBindingControllerApiBindingUser.js +122 -0
- package/dist/model/IAMBindingControllerApiCreateBindingRequest.js +149 -0
- package/dist/model/IAMBindingControllerApiRole.js +101 -0
- package/dist/model/IAMGroupControllerApiCreateGroupRequest.js +136 -0
- package/dist/model/IAMGroupControllerApiGroupDetail.js +113 -0
- package/dist/model/IAMGroupControllerApiGroupMember.js +146 -0
- package/dist/model/IAMGroupControllerApiGroupMembership.js +118 -0
- package/dist/model/IAMGroupControllerApiUpdateGroupRequest.js +127 -0
- package/dist/model/IAMInvitationControllerApiInvitationCreateRequest.js +170 -0
- package/dist/model/IAMInvitationControllerApiInvitationDetail.js +229 -0
- package/dist/model/IAMInvitationControllerApiInvitationRole.js +124 -0
- package/dist/model/IAMRoleControllerApiRoleCreateOrUpdateRequest.js +148 -0
- package/dist/model/IAMRoleControllerApiRoleCreateOrUpdateRequestPermissions.js +365 -0
- package/dist/model/IAMRoleControllerApiRoleDetail.js +143 -0
- package/dist/model/IAMServiceAccountControllerApiGroup.js +89 -0
- package/dist/model/IAMServiceAccountControllerApiServiceAccountRequest.js +163 -0
- package/dist/model/IAMServiceAccountControllerApiServiceAccountResponse.js +178 -0
- package/dist/model/IAMTenantAccessControllerApiAuthentication.js +101 -0
- package/dist/model/IAMTenantAccessControllerApiCreateTenantAccessRequest.js +112 -0
- package/dist/model/IAMTenantAccessControllerApiGroup.js +109 -0
- package/dist/model/IAMTenantAccessControllerApiRoleAssignment.js +167 -0
- package/dist/model/IAMTenantAccessControllerApiTenantAccess.js +196 -0
- package/dist/model/IAMTenantAccessControllerApiUserPermission.js +99 -0
- package/dist/model/IAMTenantAccessControllerApiUserTenantAccess.js +188 -0
- package/dist/model/IAMTenantAccessControllerUserApiAutocomplete.js +127 -0
- package/dist/model/IAMUserControllerApiCreateOrUpdateUserRequest.js +188 -0
- package/dist/model/IAMUserControllerApiGroup.js +101 -0
- package/dist/model/IAMUserControllerApiPatchRestrictedRequest.js +108 -0
- package/dist/model/IAMUserControllerApiPatchSuperAdminRequest.js +108 -0
- package/dist/model/IAMUserControllerApiPatchUserPasswordRequest.js +112 -0
- package/dist/model/IAMUserControllerApiTenant.js +101 -0
- package/dist/model/IAMUserControllerApiUser.js +258 -0
- package/dist/model/IAMUserControllerApiUserAuth.js +113 -0
- package/dist/model/IAMUserControllerApiUserSummary.js +184 -0
- package/dist/model/IAMUserGroupControllerApiUpdateUserGroupsRequest.js +89 -0
- package/dist/model/IdWithNamespace.js +101 -0
- package/dist/model/IdentityProvider.js +123 -0
- package/dist/model/InputObject.js +189 -0
- package/dist/model/InputType.js +101 -0
- package/dist/model/InstanceControllerApiActiveService.js +94 -0
- package/dist/model/InstanceControllerApiActiveServiceList.js +118 -0
- package/dist/model/InstanceControllerApiCreateOrUpdateWorkerGroupRequest.js +139 -0
- package/dist/model/InstanceControllerApiPluginArtifact.js +137 -0
- package/dist/model/InstanceControllerApiPluginArtifactListPluginArtifact.js +97 -0
- package/dist/model/InstanceControllerApiPluginArtifactListPluginResolutionResult.js +97 -0
- package/dist/model/InstanceControllerApiPluginListRequest.js +89 -0
- package/dist/model/InstanceControllerApiPluginVersionDetails.js +182 -0
- package/dist/model/InstanceControllerApiPluginVersionDetailsApiPluginClass.js +101 -0
- package/dist/model/InstanceControllerApiPluginVersionDetailsApiPluginClasses.js +122 -0
- package/dist/model/InstanceControllerApiPluginVersions.js +134 -0
- package/dist/model/InstanceControllerApiPluginVersionsApiPluginVersionAndMetadata.js +103 -0
- package/dist/model/InstanceControllerApiServerInstance.js +122 -0
- package/dist/model/InstanceControllerApiServiceInstance.js +137 -0
- package/dist/model/InstanceControllerApiWorkerGroup.js +129 -0
- package/dist/model/InstanceControllerApiWorkerGroupDetails.js +163 -0
- package/dist/model/InstanceControllerApiWorkerGroupItem.js +126 -0
- package/dist/model/InstanceControllerApiWorkerGroupList.js +112 -0
- package/dist/model/Invitation.js +258 -0
- package/dist/model/InvitationInvitationStatus.js +63 -0
- package/dist/model/Isolation.js +98 -0
- package/dist/model/KVControllerApiDeleteBulkRequest.js +89 -0
- package/dist/model/KVControllerApiDeleteBulkResponse.js +89 -0
- package/dist/model/KVControllerTypedValue.js +94 -0
- package/dist/model/KVEntry.js +125 -0
- package/dist/model/KVType.js +83 -0
- package/dist/model/Label.js +126 -0
- package/dist/model/Level.js +73 -0
- package/dist/model/Listener.js +172 -0
- package/dist/model/LogEntry.js +242 -0
- package/dist/model/MapObjectObject.js +85 -0
- package/dist/model/MeControllerApiMe.js +182 -0
- package/dist/model/MeControllerApiProfile.js +125 -0
- package/dist/model/MeControllerApiTenant.js +113 -0
- package/dist/model/MeControllerApiUpdatePasswordRequest.js +101 -0
- package/dist/model/MeControllerApiUserDetailsRequest.js +113 -0
- package/dist/model/Meta.js +129 -0
- package/dist/model/Metric.js +166 -0
- package/dist/model/MetricAggregation.js +130 -0
- package/dist/model/MetricAggregations.js +144 -0
- package/dist/model/MetricEntry.js +239 -0
- package/dist/model/MetricTag.js +101 -0
- package/dist/model/MiscControllerBasicAuthCredentials.js +113 -0
- package/dist/model/MiscControllerConfiguration.js +266 -0
- package/dist/model/MiscControllerEEConfiguration.js +494 -0
- package/dist/model/MiscControllerEnvironment.js +101 -0
- package/dist/model/MiscControllerLicenseInfo.js +129 -0
- package/dist/model/MiscControllerPluginIdAndVersion.js +101 -0
- package/dist/model/MiscControllerPreview.js +93 -0
- package/dist/model/MiscControllerTenantConfigurationInfo.js +93 -0
- package/dist/model/Name.js +102 -0
- package/dist/model/Namespace.js +350 -0
- package/dist/model/NamespaceAllowedNamespace.js +112 -0
- package/dist/model/NamespaceAllowedTrigger.js +124 -0
- package/dist/model/NamespaceLight.js +122 -0
- package/dist/model/NamespaceUsage.js +85 -0
- package/dist/model/NamespaceWithDisabled.js +370 -0
- package/dist/model/Output.js +157 -0
- package/dist/model/PageRequest.js +93 -0
- package/dist/model/PagedResultsApiGroupSummary.js +140 -0
- package/dist/model/PagedResultsApiRoleSummary.js +140 -0
- package/dist/model/PagedResultsAppsControllerApiApp.js +140 -0
- package/dist/model/PagedResultsAppsControllerApiAppCatalogItem.js +140 -0
- package/dist/model/PagedResultsAuditLogControllerAuditLogWithUser.js +140 -0
- package/dist/model/PagedResultsBlueprint.js +140 -0
- package/dist/model/PagedResultsBlueprintControllerApiBlueprintItem.js +140 -0
- package/dist/model/PagedResultsDashboard.js +140 -0
- package/dist/model/PagedResultsExecution.js +140 -0
- package/dist/model/PagedResultsFlow.js +140 -0
- package/dist/model/PagedResultsIAMBindingControllerApiBindingDetail.js +140 -0
- package/dist/model/PagedResultsIAMBindingControllerApiBindingSummary.js +140 -0
- package/dist/model/PagedResultsIAMGroupControllerApiGroupMember.js +140 -0
- package/dist/model/PagedResultsIAMInvitationControllerApiInvitationDetail.js +140 -0
- package/dist/model/PagedResultsIAMTenantAccessControllerApiUserTenantAccess.js +140 -0
- package/dist/model/PagedResultsIAMUserControllerApiUserSummary.js +140 -0
- package/dist/model/PagedResultsInstanceControllerApiPluginArtifact.js +140 -0
- package/dist/model/PagedResultsInstanceControllerApiServiceInstance.js +140 -0
- package/dist/model/PagedResultsLogEntry.js +140 -0
- package/dist/model/PagedResultsMapStringObject.js +124 -0
- package/dist/model/PagedResultsMetricEntry.js +140 -0
- package/dist/model/PagedResultsNamespaceWithDisabled.js +140 -0
- package/dist/model/PagedResultsSearchResultFlow.js +140 -0
- package/dist/model/PagedResultsTaskRun.js +140 -0
- package/dist/model/PagedResultsTenant.js +140 -0
- package/dist/model/PagedResultsTestSuite.js +140 -0
- package/dist/model/PagedResultsTrigger.js +140 -0
- package/dist/model/PagedResultsTriggerControllerTriggers.js +140 -0
- package/dist/model/PatchOperation.js +108 -0
- package/dist/model/PatchOperationPath.js +91 -0
- package/dist/model/PatchOperationType.js +63 -0
- package/dist/model/PatchRequest.js +132 -0
- package/dist/model/Permission.js +168 -0
- package/dist/model/Plugin.js +601 -0
- package/dist/model/PluginArtifact.js +149 -0
- package/dist/model/PluginArtifactMetadata.js +125 -0
- package/dist/model/PluginControllerApiPluginVersions.js +101 -0
- package/dist/model/PluginDefault.js +130 -0
- package/dist/model/PluginIcon.js +109 -0
- package/dist/model/PluginMetric.js +113 -0
- package/dist/model/PluginPluginElementMetadata.js +97 -0
- package/dist/model/PluginSchema.js +107 -0
- package/dist/model/PluginSubGroupPluginCategory.js +118 -0
- package/dist/model/PluginUsage.js +87 -0
- package/dist/model/PreviewAppRequest.js +91 -0
- package/dist/model/PropertyBoolean.js +97 -0
- package/dist/model/PropertyDouble.js +97 -0
- package/dist/model/PropertyDuration.js +101 -0
- package/dist/model/PropertyListString.js +101 -0
- package/dist/model/PropertyObject.js +97 -0
- package/dist/model/PropertyString.js +101 -0
- package/dist/model/QueryFilter.js +103 -0
- package/dist/model/QueryFilterField.js +123 -0
- package/dist/model/QueryFilterFieldOp.js +134 -0
- package/dist/model/QueryFilterOp.js +113 -0
- package/dist/model/QueryFilterOperation.js +101 -0
- package/dist/model/QueryFilterResourceField.js +122 -0
- package/dist/model/RBACServiceRoleAssignmentRoleOrigin.js +58 -0
- package/dist/model/Relation.js +98 -0
- package/dist/model/RelationType.js +83 -0
- package/dist/model/ResourceType.js +339 -0
- package/dist/model/ResourceTypeSchemaExtensionConfiguration.js +97 -0
- package/dist/model/Role.js +178 -0
- package/dist/model/RoleUsage.js +85 -0
- package/dist/model/SLA.js +148 -0
- package/dist/model/SLABehavior.js +63 -0
- package/dist/model/SLAType.js +58 -0
- package/dist/model/Schema.js +180 -0
- package/dist/model/SchemaAttribute.js +274 -0
- package/dist/model/SchemaAttributeMutability.js +68 -0
- package/dist/model/SchemaAttributeReturned.js +68 -0
- package/dist/model/SchemaAttributeType.js +88 -0
- package/dist/model/SchemaAttributeUniqueness.js +63 -0
- package/dist/model/SchemaType.js +88 -0
- package/dist/model/ScimExtension.js +89 -0
- package/dist/model/ScimResource.js +195 -0
- package/dist/model/ScimResourceWithOptionalId.js +228 -0
- package/dist/model/ScimUser.js +336 -0
- package/dist/model/SearchRequest.js +241 -0
- package/dist/model/SearchResultFlow.js +103 -0
- package/dist/model/SecurityIntegrationType.js +53 -0
- package/dist/model/ServerConfig.js +136 -0
- package/dist/model/ServerConfigLiveness.js +169 -0
- package/dist/model/ServerInstance.js +165 -0
- package/dist/model/ServerInstanceType.js +58 -0
- package/dist/model/ServerType.js +78 -0
- package/dist/model/ServiceInstance.js +232 -0
- package/dist/model/ServiceInstanceTimestampedEvent.js +118 -0
- package/dist/model/ServiceProviderConfiguration.js +384 -0
- package/dist/model/ServiceProviderConfigurationAuthenticationSchema.js +134 -0
- package/dist/model/ServiceProviderConfigurationAuthenticationSchemaType.js +73 -0
- package/dist/model/ServiceProviderConfigurationBulkConfiguration.js +111 -0
- package/dist/model/ServiceProviderConfigurationFilterConfiguration.js +103 -0
- package/dist/model/ServiceProviderConfigurationSupportedConfiguration.js +85 -0
- package/dist/model/ServiceServiceState.js +98 -0
- package/dist/model/ServiceType.js +73 -0
- package/dist/model/ServiceUsage.js +110 -0
- package/dist/model/ServiceUsageDailyServiceStatistics.js +122 -0
- package/dist/model/ServiceUsageDailyStatistics.js +109 -0
- package/dist/model/SetupConfiguration.js +145 -0
- package/dist/model/SetupConfigurationSetupData.js +115 -0
- package/dist/model/SortOrder.js +58 -0
- package/dist/model/SortRequest.js +100 -0
- package/dist/model/State.js +167 -0
- package/dist/model/StateHistory.js +119 -0
- package/dist/model/StateType.js +123 -0
- package/dist/model/Task.js +253 -0
- package/dist/model/TaskFixture.js +157 -0
- package/dist/model/TaskForExecution.js +211 -0
- package/dist/model/TaskRun.js +284 -0
- package/dist/model/TaskRunAttempt.js +168 -0
- package/dist/model/Tenant.js +245 -0
- package/dist/model/TenantInterface.js +89 -0
- package/dist/model/TenantUsage.js +85 -0
- package/dist/model/TestState.js +68 -0
- package/dist/model/TestSuite.js +212 -0
- package/dist/model/TestSuiteControllerSearchTestsLastResult.js +110 -0
- package/dist/model/TestSuiteControllerTestSuiteApiId.js +126 -0
- package/dist/model/TestSuiteControllerTestSuiteBulkRequest.js +130 -0
- package/dist/model/TestSuiteControllerTestsLastResultResponse.js +110 -0
- package/dist/model/TestSuiteRunResult.js +215 -0
- package/dist/model/TheLabelsToPassToTheExecutionCreated.js +158 -0
- package/dist/model/TimeWindow.js +101 -0
- package/dist/model/Trigger.js +287 -0
- package/dist/model/TriggerContext.js +205 -0
- package/dist/model/TriggerControllerSetDisabledRequest.js +140 -0
- package/dist/model/TriggerControllerTriggers.js +105 -0
- package/dist/model/TriggerFixture.js +136 -0
- package/dist/model/Type.js +143 -0
- package/dist/model/UnitTest.js +192 -0
- package/dist/model/UnitTestResult.js +239 -0
- package/dist/model/UpdateFlow200Response.js +261 -0
- package/dist/model/UpdateFlowsInNamespaceFromJson200Response.js +141 -0
- package/dist/model/Usage.js +343 -0
- package/dist/model/UsageEE.js +483 -0
- package/dist/model/UserGroup.js +122 -0
- package/dist/model/UserGroupType.js +58 -0
- package/dist/model/UserType.js +58 -0
- package/dist/model/UserUsage.js +138 -0
- package/dist/model/UsernamePasswordCredentials.js +150 -0
- package/dist/model/ValidateConstraintViolation.js +188 -0
- package/dist/model/ValuePathExpression.js +99 -0
- package/dist/model/WorkerGroup.js +98 -0
- package/dist/model/WorkerGroupFallback.js +63 -0
- package/dist/model/WorkerTaskRestartStrategy.js +63 -0
- package/package.json +46 -0
|
@@ -0,0 +1,894 @@
|
|
|
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 _CreateApiTokenRequest = _interopRequireDefault(require("../model/CreateApiTokenRequest"));
|
|
9
|
+
var _CreateApiTokenResponse = _interopRequireDefault(require("../model/CreateApiTokenResponse"));
|
|
10
|
+
var _IAMTenantAccessControllerApiUserTenantAccess = _interopRequireDefault(require("../model/IAMTenantAccessControllerApiUserTenantAccess"));
|
|
11
|
+
var _IAMTenantAccessControllerUserApiAutocomplete = _interopRequireDefault(require("../model/IAMTenantAccessControllerUserApiAutocomplete"));
|
|
12
|
+
var _IAMUserControllerApiCreateOrUpdateUserRequest = _interopRequireDefault(require("../model/IAMUserControllerApiCreateOrUpdateUserRequest"));
|
|
13
|
+
var _IAMUserControllerApiPatchRestrictedRequest = _interopRequireDefault(require("../model/IAMUserControllerApiPatchRestrictedRequest"));
|
|
14
|
+
var _IAMUserControllerApiPatchSuperAdminRequest = _interopRequireDefault(require("../model/IAMUserControllerApiPatchSuperAdminRequest"));
|
|
15
|
+
var _IAMUserControllerApiPatchUserPasswordRequest = _interopRequireDefault(require("../model/IAMUserControllerApiPatchUserPasswordRequest"));
|
|
16
|
+
var _IAMUserControllerApiUser = _interopRequireDefault(require("../model/IAMUserControllerApiUser"));
|
|
17
|
+
var _IAMUserGroupControllerApiUpdateUserGroupsRequest = _interopRequireDefault(require("../model/IAMUserGroupControllerApiUpdateUserGroupsRequest"));
|
|
18
|
+
var _MeControllerApiUpdatePasswordRequest = _interopRequireDefault(require("../model/MeControllerApiUpdatePasswordRequest"));
|
|
19
|
+
var _MeControllerApiUserDetailsRequest = _interopRequireDefault(require("../model/MeControllerApiUserDetailsRequest"));
|
|
20
|
+
var _PagedResultsIAMUserControllerApiUserSummary = _interopRequireDefault(require("../model/PagedResultsIAMUserControllerApiUserSummary"));
|
|
21
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
22
|
+
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); }
|
|
23
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
24
|
+
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); } }
|
|
25
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
26
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
27
|
+
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); } /**
|
|
28
|
+
* Kestra EE
|
|
29
|
+
* 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.
|
|
30
|
+
*
|
|
31
|
+
* The version of the OpenAPI document: v1
|
|
32
|
+
*
|
|
33
|
+
*
|
|
34
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
35
|
+
* https://openapi-generator.tech
|
|
36
|
+
* Do not edit the class manually.
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* Users service.
|
|
41
|
+
* @module api/UsersApi
|
|
42
|
+
* @version v0.24.0
|
|
43
|
+
*/
|
|
44
|
+
var UsersApi = exports["default"] = /*#__PURE__*/function () {
|
|
45
|
+
/**
|
|
46
|
+
* Constructs a new UsersApi.
|
|
47
|
+
* @alias module:api/UsersApi
|
|
48
|
+
* @class
|
|
49
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
50
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
51
|
+
*/
|
|
52
|
+
function UsersApi(apiClient) {
|
|
53
|
+
_classCallCheck(this, UsersApi);
|
|
54
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Callback function to receive the result of the autocompleteUsers operation.
|
|
59
|
+
* @callback module:api/UsersApi~autocompleteUsersCallback
|
|
60
|
+
* @param {String} error Error message, if any.
|
|
61
|
+
* @param {Array.<module:model/IAMTenantAccessControllerApiUserTenantAccess>} data The data returned by the service call.
|
|
62
|
+
* @param {String} response The complete HTTP response.
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* List users for autocomplete
|
|
67
|
+
* @param {String} tenant
|
|
68
|
+
* @param {module:model/IAMTenantAccessControllerUserApiAutocomplete} iAMTenantAccessControllerUserApiAutocomplete Autocomplete request
|
|
69
|
+
* @param {module:api/UsersApi~autocompleteUsersCallback} callback The callback function, accepting three arguments: error, data, response
|
|
70
|
+
* data is of type: {@link Array.<module:model/IAMTenantAccessControllerApiUserTenantAccess>}
|
|
71
|
+
*/
|
|
72
|
+
return _createClass(UsersApi, [{
|
|
73
|
+
key: "autocompleteUsers",
|
|
74
|
+
value: function autocompleteUsers(tenant, iAMTenantAccessControllerUserApiAutocomplete, callback) {
|
|
75
|
+
var postBody = iAMTenantAccessControllerUserApiAutocomplete;
|
|
76
|
+
// verify the required parameter 'tenant' is set
|
|
77
|
+
if (tenant === undefined || tenant === null) {
|
|
78
|
+
throw new Error("Missing the required parameter 'tenant' when calling autocompleteUsers");
|
|
79
|
+
}
|
|
80
|
+
// verify the required parameter 'iAMTenantAccessControllerUserApiAutocomplete' is set
|
|
81
|
+
if (iAMTenantAccessControllerUserApiAutocomplete === undefined || iAMTenantAccessControllerUserApiAutocomplete === null) {
|
|
82
|
+
throw new Error("Missing the required parameter 'iAMTenantAccessControllerUserApiAutocomplete' when calling autocompleteUsers");
|
|
83
|
+
}
|
|
84
|
+
var pathParams = {
|
|
85
|
+
'tenant': tenant
|
|
86
|
+
};
|
|
87
|
+
var queryParams = {};
|
|
88
|
+
var headerParams = {};
|
|
89
|
+
var formParams = {};
|
|
90
|
+
var authNames = ['basicAuth', 'bearerAuth'];
|
|
91
|
+
var contentTypes = ['application/json'];
|
|
92
|
+
var accepts = ['application/json'];
|
|
93
|
+
var returnType = [_IAMTenantAccessControllerApiUserTenantAccess["default"]];
|
|
94
|
+
return this.apiClient.callApi('/api/v1/{tenant}/tenant-access/autocomplete', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Callback function to receive the result of the createApiTokensForUser operation.
|
|
99
|
+
* @callback module:api/UsersApi~createApiTokensForUserCallback
|
|
100
|
+
* @param {String} error Error message, if any.
|
|
101
|
+
* @param {module:model/CreateApiTokenResponse} data The data returned by the service call.
|
|
102
|
+
* @param {String} response The complete HTTP response.
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Create new API Token for a specific user
|
|
107
|
+
* Superadmin-only. Create a new API token for a user.
|
|
108
|
+
* @param {String} id The user id
|
|
109
|
+
* @param {module:model/CreateApiTokenRequest} createApiTokenRequest The create api-token request
|
|
110
|
+
* @param {module:api/UsersApi~createApiTokensForUserCallback} callback The callback function, accepting three arguments: error, data, response
|
|
111
|
+
* data is of type: {@link module:model/CreateApiTokenResponse}
|
|
112
|
+
*/
|
|
113
|
+
}, {
|
|
114
|
+
key: "createApiTokensForUser",
|
|
115
|
+
value: function createApiTokensForUser(id, createApiTokenRequest, callback) {
|
|
116
|
+
var postBody = createApiTokenRequest;
|
|
117
|
+
// verify the required parameter 'id' is set
|
|
118
|
+
if (id === undefined || id === null) {
|
|
119
|
+
throw new Error("Missing the required parameter 'id' when calling createApiTokensForUser");
|
|
120
|
+
}
|
|
121
|
+
// verify the required parameter 'createApiTokenRequest' is set
|
|
122
|
+
if (createApiTokenRequest === undefined || createApiTokenRequest === null) {
|
|
123
|
+
throw new Error("Missing the required parameter 'createApiTokenRequest' when calling createApiTokensForUser");
|
|
124
|
+
}
|
|
125
|
+
var pathParams = {
|
|
126
|
+
'id': id
|
|
127
|
+
};
|
|
128
|
+
var queryParams = {};
|
|
129
|
+
var headerParams = {};
|
|
130
|
+
var formParams = {};
|
|
131
|
+
var authNames = ['basicAuth', 'bearerAuth'];
|
|
132
|
+
var contentTypes = ['application/json'];
|
|
133
|
+
var accepts = ['application/json'];
|
|
134
|
+
var returnType = _CreateApiTokenResponse["default"];
|
|
135
|
+
return this.apiClient.callApi('/api/v1/users/{id}/api-tokens', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Callback function to receive the result of the createApiTokensForUser1 operation.
|
|
140
|
+
* @callback module:api/UsersApi~createApiTokensForUser1Callback
|
|
141
|
+
* @param {String} error Error message, if any.
|
|
142
|
+
* @param {Object} data The data returned by the service call.
|
|
143
|
+
* @param {String} response The complete HTTP response.
|
|
144
|
+
*/
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Create new API Token for a specific user
|
|
148
|
+
* @param {String} id The user id
|
|
149
|
+
* @param {String} tenant
|
|
150
|
+
* @param {module:model/CreateApiTokenRequest} createApiTokenRequest The create api-token request
|
|
151
|
+
* @param {module:api/UsersApi~createApiTokensForUser1Callback} callback The callback function, accepting three arguments: error, data, response
|
|
152
|
+
* data is of type: {@link Object}
|
|
153
|
+
*/
|
|
154
|
+
}, {
|
|
155
|
+
key: "createApiTokensForUser1",
|
|
156
|
+
value: function createApiTokensForUser1(id, tenant, createApiTokenRequest, callback) {
|
|
157
|
+
var postBody = createApiTokenRequest;
|
|
158
|
+
// verify the required parameter 'id' is set
|
|
159
|
+
if (id === undefined || id === null) {
|
|
160
|
+
throw new Error("Missing the required parameter 'id' when calling createApiTokensForUser1");
|
|
161
|
+
}
|
|
162
|
+
// verify the required parameter 'tenant' is set
|
|
163
|
+
if (tenant === undefined || tenant === null) {
|
|
164
|
+
throw new Error("Missing the required parameter 'tenant' when calling createApiTokensForUser1");
|
|
165
|
+
}
|
|
166
|
+
// verify the required parameter 'createApiTokenRequest' is set
|
|
167
|
+
if (createApiTokenRequest === undefined || createApiTokenRequest === null) {
|
|
168
|
+
throw new Error("Missing the required parameter 'createApiTokenRequest' when calling createApiTokensForUser1");
|
|
169
|
+
}
|
|
170
|
+
var pathParams = {
|
|
171
|
+
'id': id,
|
|
172
|
+
'tenant': tenant
|
|
173
|
+
};
|
|
174
|
+
var queryParams = {};
|
|
175
|
+
var headerParams = {};
|
|
176
|
+
var formParams = {};
|
|
177
|
+
var authNames = ['basicAuth', 'bearerAuth'];
|
|
178
|
+
var contentTypes = ['application/json'];
|
|
179
|
+
var accepts = ['application/json'];
|
|
180
|
+
var returnType = Object;
|
|
181
|
+
return this.apiClient.callApi('/api/v1/{tenant}/service-accounts/{id}/api-tokens', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Callback function to receive the result of the createUser operation.
|
|
186
|
+
* @callback module:api/UsersApi~createUserCallback
|
|
187
|
+
* @param {String} error Error message, if any.
|
|
188
|
+
* @param data This operation does not return a value.
|
|
189
|
+
* @param {String} response The complete HTTP response.
|
|
190
|
+
*/
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Create a new user account
|
|
194
|
+
* Superadmin-only. Create a new user account with an optional password based authentication method.
|
|
195
|
+
* @param {module:model/IAMUserControllerApiCreateOrUpdateUserRequest} iAMUserControllerApiCreateOrUpdateUserRequest
|
|
196
|
+
* @param {module:api/UsersApi~createUserCallback} callback The callback function, accepting three arguments: error, data, response
|
|
197
|
+
*/
|
|
198
|
+
}, {
|
|
199
|
+
key: "createUser",
|
|
200
|
+
value: function createUser(iAMUserControllerApiCreateOrUpdateUserRequest, callback) {
|
|
201
|
+
var postBody = iAMUserControllerApiCreateOrUpdateUserRequest;
|
|
202
|
+
// verify the required parameter 'iAMUserControllerApiCreateOrUpdateUserRequest' is set
|
|
203
|
+
if (iAMUserControllerApiCreateOrUpdateUserRequest === undefined || iAMUserControllerApiCreateOrUpdateUserRequest === null) {
|
|
204
|
+
throw new Error("Missing the required parameter 'iAMUserControllerApiCreateOrUpdateUserRequest' when calling createUser");
|
|
205
|
+
}
|
|
206
|
+
var pathParams = {};
|
|
207
|
+
var queryParams = {};
|
|
208
|
+
var headerParams = {};
|
|
209
|
+
var formParams = {};
|
|
210
|
+
var authNames = ['basicAuth', 'bearerAuth'];
|
|
211
|
+
var contentTypes = ['application/json'];
|
|
212
|
+
var accepts = [];
|
|
213
|
+
var returnType = null;
|
|
214
|
+
return this.apiClient.callApi('/api/v1/users', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Callback function to receive the result of the deleteApiToken operation.
|
|
219
|
+
* @callback module:api/UsersApi~deleteApiTokenCallback
|
|
220
|
+
* @param {String} error Error message, if any.
|
|
221
|
+
* @param data This operation does not return a value.
|
|
222
|
+
* @param {String} response The complete HTTP response.
|
|
223
|
+
*/
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Delete an API Token for specific user and token id
|
|
227
|
+
* Superadmin-only. Delete an API token for a user.
|
|
228
|
+
* @param {String} id The user id
|
|
229
|
+
* @param {String} tokenId The token id
|
|
230
|
+
* @param {module:api/UsersApi~deleteApiTokenCallback} callback The callback function, accepting three arguments: error, data, response
|
|
231
|
+
*/
|
|
232
|
+
}, {
|
|
233
|
+
key: "deleteApiToken",
|
|
234
|
+
value: function deleteApiToken(id, tokenId, callback) {
|
|
235
|
+
var postBody = null;
|
|
236
|
+
// verify the required parameter 'id' is set
|
|
237
|
+
if (id === undefined || id === null) {
|
|
238
|
+
throw new Error("Missing the required parameter 'id' when calling deleteApiToken");
|
|
239
|
+
}
|
|
240
|
+
// verify the required parameter 'tokenId' is set
|
|
241
|
+
if (tokenId === undefined || tokenId === null) {
|
|
242
|
+
throw new Error("Missing the required parameter 'tokenId' when calling deleteApiToken");
|
|
243
|
+
}
|
|
244
|
+
var pathParams = {
|
|
245
|
+
'id': id,
|
|
246
|
+
'tokenId': tokenId
|
|
247
|
+
};
|
|
248
|
+
var queryParams = {};
|
|
249
|
+
var headerParams = {};
|
|
250
|
+
var formParams = {};
|
|
251
|
+
var authNames = ['basicAuth', 'bearerAuth'];
|
|
252
|
+
var contentTypes = [];
|
|
253
|
+
var accepts = [];
|
|
254
|
+
var returnType = null;
|
|
255
|
+
return this.apiClient.callApi('/api/v1/users/{id}/api-tokens/{tokenId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Callback function to receive the result of the deleteApiToken1 operation.
|
|
260
|
+
* @callback module:api/UsersApi~deleteApiToken1Callback
|
|
261
|
+
* @param {String} error Error message, if any.
|
|
262
|
+
* @param {Object} data The data returned by the service call.
|
|
263
|
+
* @param {String} response The complete HTTP response.
|
|
264
|
+
*/
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Delete an API Token for specific user and token id
|
|
268
|
+
* @param {String} id The user id
|
|
269
|
+
* @param {String} tokenId The token id
|
|
270
|
+
* @param {String} tenant
|
|
271
|
+
* @param {module:api/UsersApi~deleteApiToken1Callback} callback The callback function, accepting three arguments: error, data, response
|
|
272
|
+
* data is of type: {@link Object}
|
|
273
|
+
*/
|
|
274
|
+
}, {
|
|
275
|
+
key: "deleteApiToken1",
|
|
276
|
+
value: function deleteApiToken1(id, tokenId, tenant, callback) {
|
|
277
|
+
var postBody = null;
|
|
278
|
+
// verify the required parameter 'id' is set
|
|
279
|
+
if (id === undefined || id === null) {
|
|
280
|
+
throw new Error("Missing the required parameter 'id' when calling deleteApiToken1");
|
|
281
|
+
}
|
|
282
|
+
// verify the required parameter 'tokenId' is set
|
|
283
|
+
if (tokenId === undefined || tokenId === null) {
|
|
284
|
+
throw new Error("Missing the required parameter 'tokenId' when calling deleteApiToken1");
|
|
285
|
+
}
|
|
286
|
+
// verify the required parameter 'tenant' is set
|
|
287
|
+
if (tenant === undefined || tenant === null) {
|
|
288
|
+
throw new Error("Missing the required parameter 'tenant' when calling deleteApiToken1");
|
|
289
|
+
}
|
|
290
|
+
var pathParams = {
|
|
291
|
+
'id': id,
|
|
292
|
+
'tokenId': tokenId,
|
|
293
|
+
'tenant': tenant
|
|
294
|
+
};
|
|
295
|
+
var queryParams = {};
|
|
296
|
+
var headerParams = {};
|
|
297
|
+
var formParams = {};
|
|
298
|
+
var authNames = ['basicAuth', 'bearerAuth'];
|
|
299
|
+
var contentTypes = [];
|
|
300
|
+
var accepts = ['application/json'];
|
|
301
|
+
var returnType = Object;
|
|
302
|
+
return this.apiClient.callApi('/api/v1/{tenant}/service-accounts/{id}/api-tokens/{tokenId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Callback function to receive the result of the deleteRefreshToken operation.
|
|
307
|
+
* @callback module:api/UsersApi~deleteRefreshTokenCallback
|
|
308
|
+
* @param {String} error Error message, if any.
|
|
309
|
+
* @param data This operation does not return a value.
|
|
310
|
+
* @param {String} response The complete HTTP response.
|
|
311
|
+
*/
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Delete a user refresh token
|
|
315
|
+
* @param {String} id The user id
|
|
316
|
+
* @param {module:api/UsersApi~deleteRefreshTokenCallback} callback The callback function, accepting three arguments: error, data, response
|
|
317
|
+
*/
|
|
318
|
+
}, {
|
|
319
|
+
key: "deleteRefreshToken",
|
|
320
|
+
value: function deleteRefreshToken(id, callback) {
|
|
321
|
+
var postBody = null;
|
|
322
|
+
// verify the required parameter 'id' is set
|
|
323
|
+
if (id === undefined || id === null) {
|
|
324
|
+
throw new Error("Missing the required parameter 'id' when calling deleteRefreshToken");
|
|
325
|
+
}
|
|
326
|
+
var pathParams = {
|
|
327
|
+
'id': id
|
|
328
|
+
};
|
|
329
|
+
var queryParams = {};
|
|
330
|
+
var headerParams = {};
|
|
331
|
+
var formParams = {};
|
|
332
|
+
var authNames = ['basicAuth', 'bearerAuth'];
|
|
333
|
+
var contentTypes = [];
|
|
334
|
+
var accepts = [];
|
|
335
|
+
var returnType = null;
|
|
336
|
+
return this.apiClient.callApi('/api/v1/users/{id}/refresh-token', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Callback function to receive the result of the deleteUser operation.
|
|
341
|
+
* @callback module:api/UsersApi~deleteUserCallback
|
|
342
|
+
* @param {String} error Error message, if any.
|
|
343
|
+
* @param data This operation does not return a value.
|
|
344
|
+
* @param {String} response The complete HTTP response.
|
|
345
|
+
*/
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Delete a user
|
|
349
|
+
* Superadmin-only. Delete a user including all its access.
|
|
350
|
+
* @param {String} id The user id
|
|
351
|
+
* @param {module:api/UsersApi~deleteUserCallback} callback The callback function, accepting three arguments: error, data, response
|
|
352
|
+
*/
|
|
353
|
+
}, {
|
|
354
|
+
key: "deleteUser",
|
|
355
|
+
value: function deleteUser(id, callback) {
|
|
356
|
+
var postBody = null;
|
|
357
|
+
// verify the required parameter 'id' is set
|
|
358
|
+
if (id === undefined || id === null) {
|
|
359
|
+
throw new Error("Missing the required parameter 'id' when calling deleteUser");
|
|
360
|
+
}
|
|
361
|
+
var pathParams = {
|
|
362
|
+
'id': id
|
|
363
|
+
};
|
|
364
|
+
var queryParams = {};
|
|
365
|
+
var headerParams = {};
|
|
366
|
+
var formParams = {};
|
|
367
|
+
var authNames = ['basicAuth', 'bearerAuth'];
|
|
368
|
+
var contentTypes = [];
|
|
369
|
+
var accepts = [];
|
|
370
|
+
var returnType = null;
|
|
371
|
+
return this.apiClient.callApi('/api/v1/users/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Callback function to receive the result of the deleteUserAuthMethod operation.
|
|
376
|
+
* @callback module:api/UsersApi~deleteUserAuthMethodCallback
|
|
377
|
+
* @param {String} error Error message, if any.
|
|
378
|
+
* @param {module:model/IAMUserControllerApiUser} data The data returned by the service call.
|
|
379
|
+
* @param {String} response The complete HTTP response.
|
|
380
|
+
*/
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Update user password
|
|
384
|
+
* Superadmin-only. Updates whether a user is a superadmin.
|
|
385
|
+
* @param {String} id The user id
|
|
386
|
+
* @param {String} auth The user auth method id
|
|
387
|
+
* @param {module:api/UsersApi~deleteUserAuthMethodCallback} callback The callback function, accepting three arguments: error, data, response
|
|
388
|
+
* data is of type: {@link module:model/IAMUserControllerApiUser}
|
|
389
|
+
*/
|
|
390
|
+
}, {
|
|
391
|
+
key: "deleteUserAuthMethod",
|
|
392
|
+
value: function deleteUserAuthMethod(id, auth, callback) {
|
|
393
|
+
var postBody = null;
|
|
394
|
+
// verify the required parameter 'id' is set
|
|
395
|
+
if (id === undefined || id === null) {
|
|
396
|
+
throw new Error("Missing the required parameter 'id' when calling deleteUserAuthMethod");
|
|
397
|
+
}
|
|
398
|
+
// verify the required parameter 'auth' is set
|
|
399
|
+
if (auth === undefined || auth === null) {
|
|
400
|
+
throw new Error("Missing the required parameter 'auth' when calling deleteUserAuthMethod");
|
|
401
|
+
}
|
|
402
|
+
var pathParams = {
|
|
403
|
+
'id': id,
|
|
404
|
+
'auth': auth
|
|
405
|
+
};
|
|
406
|
+
var queryParams = {};
|
|
407
|
+
var headerParams = {};
|
|
408
|
+
var formParams = {};
|
|
409
|
+
var authNames = ['basicAuth', 'bearerAuth'];
|
|
410
|
+
var contentTypes = [];
|
|
411
|
+
var accepts = ['application/json'];
|
|
412
|
+
var returnType = _IAMUserControllerApiUser["default"];
|
|
413
|
+
return this.apiClient.callApi('/api/v1/users/{id}/auths/{auth}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Callback function to receive the result of the getUser operation.
|
|
418
|
+
* @callback module:api/UsersApi~getUserCallback
|
|
419
|
+
* @param {String} error Error message, if any.
|
|
420
|
+
* @param {module:model/IAMUserControllerApiUser} data The data returned by the service call.
|
|
421
|
+
* @param {String} response The complete HTTP response.
|
|
422
|
+
*/
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Get a user
|
|
426
|
+
* Superadmin-only. Get user account details.
|
|
427
|
+
* @param {String} id The user id
|
|
428
|
+
* @param {module:api/UsersApi~getUserCallback} callback The callback function, accepting three arguments: error, data, response
|
|
429
|
+
* data is of type: {@link module:model/IAMUserControllerApiUser}
|
|
430
|
+
*/
|
|
431
|
+
}, {
|
|
432
|
+
key: "getUser",
|
|
433
|
+
value: function getUser(id, callback) {
|
|
434
|
+
var postBody = null;
|
|
435
|
+
// verify the required parameter 'id' is set
|
|
436
|
+
if (id === undefined || id === null) {
|
|
437
|
+
throw new Error("Missing the required parameter 'id' when calling getUser");
|
|
438
|
+
}
|
|
439
|
+
var pathParams = {
|
|
440
|
+
'id': id
|
|
441
|
+
};
|
|
442
|
+
var queryParams = {};
|
|
443
|
+
var headerParams = {};
|
|
444
|
+
var formParams = {};
|
|
445
|
+
var authNames = ['basicAuth', 'bearerAuth'];
|
|
446
|
+
var contentTypes = [];
|
|
447
|
+
var accepts = ['application/json'];
|
|
448
|
+
var returnType = _IAMUserControllerApiUser["default"];
|
|
449
|
+
return this.apiClient.callApi('/api/v1/users/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Callback function to receive the result of the impersonate operation.
|
|
454
|
+
* @callback module:api/UsersApi~impersonateCallback
|
|
455
|
+
* @param {String} error Error message, if any.
|
|
456
|
+
* @param {Object} data The data returned by the service call.
|
|
457
|
+
* @param {String} response The complete HTTP response.
|
|
458
|
+
*/
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Impersonate a user
|
|
462
|
+
* Superadmin-only. Allows an admin to impersonate another user.
|
|
463
|
+
* @param {String} id The user id
|
|
464
|
+
* @param {module:api/UsersApi~impersonateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
465
|
+
* data is of type: {@link Object}
|
|
466
|
+
*/
|
|
467
|
+
}, {
|
|
468
|
+
key: "impersonate",
|
|
469
|
+
value: function impersonate(id, callback) {
|
|
470
|
+
var postBody = null;
|
|
471
|
+
// verify the required parameter 'id' is set
|
|
472
|
+
if (id === undefined || id === null) {
|
|
473
|
+
throw new Error("Missing the required parameter 'id' when calling impersonate");
|
|
474
|
+
}
|
|
475
|
+
var pathParams = {
|
|
476
|
+
'id': id
|
|
477
|
+
};
|
|
478
|
+
var queryParams = {};
|
|
479
|
+
var headerParams = {};
|
|
480
|
+
var formParams = {};
|
|
481
|
+
var authNames = ['basicAuth', 'bearerAuth'];
|
|
482
|
+
var contentTypes = [];
|
|
483
|
+
var accepts = ['application/json'];
|
|
484
|
+
var returnType = Object;
|
|
485
|
+
return this.apiClient.callApi('/api/v1/users/{id}/impersonate', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Callback function to receive the result of the listApiTokens operation.
|
|
490
|
+
* @callback module:api/UsersApi~listApiTokensCallback
|
|
491
|
+
* @param {String} error Error message, if any.
|
|
492
|
+
* @param {Object} data The data returned by the service call.
|
|
493
|
+
* @param {String} response The complete HTTP response.
|
|
494
|
+
*/
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* List API tokens for a specific user
|
|
498
|
+
* Superadmin-only. Get all API token existing for a user.
|
|
499
|
+
* @param {String} id The user id
|
|
500
|
+
* @param {module:api/UsersApi~listApiTokensCallback} callback The callback function, accepting three arguments: error, data, response
|
|
501
|
+
* data is of type: {@link Object}
|
|
502
|
+
*/
|
|
503
|
+
}, {
|
|
504
|
+
key: "listApiTokens",
|
|
505
|
+
value: function listApiTokens(id, callback) {
|
|
506
|
+
var postBody = null;
|
|
507
|
+
// verify the required parameter 'id' is set
|
|
508
|
+
if (id === undefined || id === null) {
|
|
509
|
+
throw new Error("Missing the required parameter 'id' when calling listApiTokens");
|
|
510
|
+
}
|
|
511
|
+
var pathParams = {
|
|
512
|
+
'id': id
|
|
513
|
+
};
|
|
514
|
+
var queryParams = {};
|
|
515
|
+
var headerParams = {};
|
|
516
|
+
var formParams = {};
|
|
517
|
+
var authNames = ['basicAuth', 'bearerAuth'];
|
|
518
|
+
var contentTypes = [];
|
|
519
|
+
var accepts = ['application/json'];
|
|
520
|
+
var returnType = Object;
|
|
521
|
+
return this.apiClient.callApi('/api/v1/users/{id}/api-tokens', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Callback function to receive the result of the listApiTokens1 operation.
|
|
526
|
+
* @callback module:api/UsersApi~listApiTokens1Callback
|
|
527
|
+
* @param {String} error Error message, if any.
|
|
528
|
+
* @param {Object} data The data returned by the service call.
|
|
529
|
+
* @param {String} response The complete HTTP response.
|
|
530
|
+
*/
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* List API tokens for a specific user
|
|
534
|
+
* @param {String} id The user id
|
|
535
|
+
* @param {String} tenant
|
|
536
|
+
* @param {module:api/UsersApi~listApiTokens1Callback} callback The callback function, accepting three arguments: error, data, response
|
|
537
|
+
* data is of type: {@link Object}
|
|
538
|
+
*/
|
|
539
|
+
}, {
|
|
540
|
+
key: "listApiTokens1",
|
|
541
|
+
value: function listApiTokens1(id, tenant, callback) {
|
|
542
|
+
var postBody = null;
|
|
543
|
+
// verify the required parameter 'id' is set
|
|
544
|
+
if (id === undefined || id === null) {
|
|
545
|
+
throw new Error("Missing the required parameter 'id' when calling listApiTokens1");
|
|
546
|
+
}
|
|
547
|
+
// verify the required parameter 'tenant' is set
|
|
548
|
+
if (tenant === undefined || tenant === null) {
|
|
549
|
+
throw new Error("Missing the required parameter 'tenant' when calling listApiTokens1");
|
|
550
|
+
}
|
|
551
|
+
var pathParams = {
|
|
552
|
+
'id': id,
|
|
553
|
+
'tenant': tenant
|
|
554
|
+
};
|
|
555
|
+
var queryParams = {};
|
|
556
|
+
var headerParams = {};
|
|
557
|
+
var formParams = {};
|
|
558
|
+
var authNames = ['basicAuth', 'bearerAuth'];
|
|
559
|
+
var contentTypes = [];
|
|
560
|
+
var accepts = ['application/json'];
|
|
561
|
+
var returnType = Object;
|
|
562
|
+
return this.apiClient.callApi('/api/v1/{tenant}/service-accounts/{id}/api-tokens', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* Callback function to receive the result of the listUsers operation.
|
|
567
|
+
* @callback module:api/UsersApi~listUsersCallback
|
|
568
|
+
* @param {String} error Error message, if any.
|
|
569
|
+
* @param {module:model/PagedResultsIAMUserControllerApiUserSummary} data The data returned by the service call.
|
|
570
|
+
* @param {String} response The complete HTTP response.
|
|
571
|
+
*/
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Retrieve users
|
|
575
|
+
* @param {Number} page The current page
|
|
576
|
+
* @param {Number} size The current page size
|
|
577
|
+
* @param {Object} opts Optional parameters
|
|
578
|
+
* @param {String} [q] A string filter
|
|
579
|
+
* @param {Array.<String>} [sort] The sort of current page
|
|
580
|
+
* @param {module:api/UsersApi~listUsersCallback} callback The callback function, accepting three arguments: error, data, response
|
|
581
|
+
* data is of type: {@link module:model/PagedResultsIAMUserControllerApiUserSummary}
|
|
582
|
+
*/
|
|
583
|
+
}, {
|
|
584
|
+
key: "listUsers",
|
|
585
|
+
value: function listUsers(page, size, opts, callback) {
|
|
586
|
+
opts = opts || {};
|
|
587
|
+
var postBody = null;
|
|
588
|
+
// verify the required parameter 'page' is set
|
|
589
|
+
if (page === undefined || page === null) {
|
|
590
|
+
throw new Error("Missing the required parameter 'page' when calling listUsers");
|
|
591
|
+
}
|
|
592
|
+
// verify the required parameter 'size' is set
|
|
593
|
+
if (size === undefined || size === null) {
|
|
594
|
+
throw new Error("Missing the required parameter 'size' when calling listUsers");
|
|
595
|
+
}
|
|
596
|
+
var pathParams = {};
|
|
597
|
+
var queryParams = {
|
|
598
|
+
'q': opts['q'],
|
|
599
|
+
'page': page,
|
|
600
|
+
'size': size,
|
|
601
|
+
'sort': this.apiClient.buildCollectionParam(opts['sort'], 'csv')
|
|
602
|
+
};
|
|
603
|
+
var headerParams = {};
|
|
604
|
+
var formParams = {};
|
|
605
|
+
var authNames = ['basicAuth', 'bearerAuth'];
|
|
606
|
+
var contentTypes = [];
|
|
607
|
+
var accepts = ['application/json'];
|
|
608
|
+
var returnType = _PagedResultsIAMUserControllerApiUserSummary["default"];
|
|
609
|
+
return this.apiClient.callApi('/api/v1/users', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* Callback function to receive the result of the patchUser operation.
|
|
614
|
+
* @callback module:api/UsersApi~patchUserCallback
|
|
615
|
+
* @param {String} error Error message, if any.
|
|
616
|
+
* @param {module:model/IAMUserControllerApiUser} data The data returned by the service call.
|
|
617
|
+
* @param {String} response The complete HTTP response.
|
|
618
|
+
*/
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* Update user details
|
|
622
|
+
* Superadmin-only. Updates the the details of a user.
|
|
623
|
+
* @param {String} id The user id
|
|
624
|
+
* @param {module:model/MeControllerApiUserDetailsRequest} meControllerApiUserDetailsRequest The user details
|
|
625
|
+
* @param {module:api/UsersApi~patchUserCallback} callback The callback function, accepting three arguments: error, data, response
|
|
626
|
+
* data is of type: {@link module:model/IAMUserControllerApiUser}
|
|
627
|
+
*/
|
|
628
|
+
}, {
|
|
629
|
+
key: "patchUser",
|
|
630
|
+
value: function patchUser(id, meControllerApiUserDetailsRequest, callback) {
|
|
631
|
+
var postBody = meControllerApiUserDetailsRequest;
|
|
632
|
+
// verify the required parameter 'id' is set
|
|
633
|
+
if (id === undefined || id === null) {
|
|
634
|
+
throw new Error("Missing the required parameter 'id' when calling patchUser");
|
|
635
|
+
}
|
|
636
|
+
// verify the required parameter 'meControllerApiUserDetailsRequest' is set
|
|
637
|
+
if (meControllerApiUserDetailsRequest === undefined || meControllerApiUserDetailsRequest === null) {
|
|
638
|
+
throw new Error("Missing the required parameter 'meControllerApiUserDetailsRequest' when calling patchUser");
|
|
639
|
+
}
|
|
640
|
+
var pathParams = {
|
|
641
|
+
'id': id
|
|
642
|
+
};
|
|
643
|
+
var queryParams = {};
|
|
644
|
+
var headerParams = {};
|
|
645
|
+
var formParams = {};
|
|
646
|
+
var authNames = ['basicAuth', 'bearerAuth'];
|
|
647
|
+
var contentTypes = ['application/json'];
|
|
648
|
+
var accepts = ['application/json'];
|
|
649
|
+
var returnType = _IAMUserControllerApiUser["default"];
|
|
650
|
+
return this.apiClient.callApi('/api/v1/users/{id}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Callback function to receive the result of the patchUserDemo operation.
|
|
655
|
+
* @callback module:api/UsersApi~patchUserDemoCallback
|
|
656
|
+
* @param {String} error Error message, if any.
|
|
657
|
+
* @param data This operation does not return a value.
|
|
658
|
+
* @param {String} response The complete HTTP response.
|
|
659
|
+
*/
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Update user demo
|
|
663
|
+
* Superadmin-only. Updates whether a user is for demo.
|
|
664
|
+
* @param {String} id The user id
|
|
665
|
+
* @param {module:model/IAMUserControllerApiPatchRestrictedRequest} iAMUserControllerApiPatchRestrictedRequest
|
|
666
|
+
* @param {module:api/UsersApi~patchUserDemoCallback} callback The callback function, accepting three arguments: error, data, response
|
|
667
|
+
*/
|
|
668
|
+
}, {
|
|
669
|
+
key: "patchUserDemo",
|
|
670
|
+
value: function patchUserDemo(id, iAMUserControllerApiPatchRestrictedRequest, callback) {
|
|
671
|
+
var postBody = iAMUserControllerApiPatchRestrictedRequest;
|
|
672
|
+
// verify the required parameter 'id' is set
|
|
673
|
+
if (id === undefined || id === null) {
|
|
674
|
+
throw new Error("Missing the required parameter 'id' when calling patchUserDemo");
|
|
675
|
+
}
|
|
676
|
+
// verify the required parameter 'iAMUserControllerApiPatchRestrictedRequest' is set
|
|
677
|
+
if (iAMUserControllerApiPatchRestrictedRequest === undefined || iAMUserControllerApiPatchRestrictedRequest === null) {
|
|
678
|
+
throw new Error("Missing the required parameter 'iAMUserControllerApiPatchRestrictedRequest' when calling patchUserDemo");
|
|
679
|
+
}
|
|
680
|
+
var pathParams = {
|
|
681
|
+
'id': id
|
|
682
|
+
};
|
|
683
|
+
var queryParams = {};
|
|
684
|
+
var headerParams = {};
|
|
685
|
+
var formParams = {};
|
|
686
|
+
var authNames = ['basicAuth', 'bearerAuth'];
|
|
687
|
+
var contentTypes = ['application/json'];
|
|
688
|
+
var accepts = [];
|
|
689
|
+
var returnType = null;
|
|
690
|
+
return this.apiClient.callApi('/api/v1/users/{id}/restricted', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* Callback function to receive the result of the patchUserPassword operation.
|
|
695
|
+
* @callback module:api/UsersApi~patchUserPasswordCallback
|
|
696
|
+
* @param {String} error Error message, if any.
|
|
697
|
+
* @param {Object} data The data returned by the service call.
|
|
698
|
+
* @param {String} response The complete HTTP response.
|
|
699
|
+
*/
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* Update user password
|
|
703
|
+
* Superadmin-only. Updates whether a user is a superadmin.
|
|
704
|
+
* @param {String} id The user id
|
|
705
|
+
* @param {module:model/IAMUserControllerApiPatchUserPasswordRequest} iAMUserControllerApiPatchUserPasswordRequest
|
|
706
|
+
* @param {module:api/UsersApi~patchUserPasswordCallback} callback The callback function, accepting three arguments: error, data, response
|
|
707
|
+
* data is of type: {@link Object}
|
|
708
|
+
*/
|
|
709
|
+
}, {
|
|
710
|
+
key: "patchUserPassword",
|
|
711
|
+
value: function patchUserPassword(id, iAMUserControllerApiPatchUserPasswordRequest, callback) {
|
|
712
|
+
var postBody = iAMUserControllerApiPatchUserPasswordRequest;
|
|
713
|
+
// verify the required parameter 'id' is set
|
|
714
|
+
if (id === undefined || id === null) {
|
|
715
|
+
throw new Error("Missing the required parameter 'id' when calling patchUserPassword");
|
|
716
|
+
}
|
|
717
|
+
// verify the required parameter 'iAMUserControllerApiPatchUserPasswordRequest' is set
|
|
718
|
+
if (iAMUserControllerApiPatchUserPasswordRequest === undefined || iAMUserControllerApiPatchUserPasswordRequest === null) {
|
|
719
|
+
throw new Error("Missing the required parameter 'iAMUserControllerApiPatchUserPasswordRequest' when calling patchUserPassword");
|
|
720
|
+
}
|
|
721
|
+
var pathParams = {
|
|
722
|
+
'id': id
|
|
723
|
+
};
|
|
724
|
+
var queryParams = {};
|
|
725
|
+
var headerParams = {};
|
|
726
|
+
var formParams = {};
|
|
727
|
+
var authNames = ['basicAuth', 'bearerAuth'];
|
|
728
|
+
var contentTypes = ['application/json'];
|
|
729
|
+
var accepts = ['application/json'];
|
|
730
|
+
var returnType = Object;
|
|
731
|
+
return this.apiClient.callApi('/api/v1/users/{id}/password', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* Callback function to receive the result of the patchUserSuperAdmin operation.
|
|
736
|
+
* @callback module:api/UsersApi~patchUserSuperAdminCallback
|
|
737
|
+
* @param {String} error Error message, if any.
|
|
738
|
+
* @param data This operation does not return a value.
|
|
739
|
+
* @param {String} response The complete HTTP response.
|
|
740
|
+
*/
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Update user superadmin privileges
|
|
744
|
+
* Superadmin-only. Updates whether a user is a superadmin.
|
|
745
|
+
* @param {String} id The user id
|
|
746
|
+
* @param {module:model/IAMUserControllerApiPatchSuperAdminRequest} iAMUserControllerApiPatchSuperAdminRequest
|
|
747
|
+
* @param {module:api/UsersApi~patchUserSuperAdminCallback} callback The callback function, accepting three arguments: error, data, response
|
|
748
|
+
*/
|
|
749
|
+
}, {
|
|
750
|
+
key: "patchUserSuperAdmin",
|
|
751
|
+
value: function patchUserSuperAdmin(id, iAMUserControllerApiPatchSuperAdminRequest, callback) {
|
|
752
|
+
var postBody = iAMUserControllerApiPatchSuperAdminRequest;
|
|
753
|
+
// verify the required parameter 'id' is set
|
|
754
|
+
if (id === undefined || id === null) {
|
|
755
|
+
throw new Error("Missing the required parameter 'id' when calling patchUserSuperAdmin");
|
|
756
|
+
}
|
|
757
|
+
// verify the required parameter 'iAMUserControllerApiPatchSuperAdminRequest' is set
|
|
758
|
+
if (iAMUserControllerApiPatchSuperAdminRequest === undefined || iAMUserControllerApiPatchSuperAdminRequest === null) {
|
|
759
|
+
throw new Error("Missing the required parameter 'iAMUserControllerApiPatchSuperAdminRequest' when calling patchUserSuperAdmin");
|
|
760
|
+
}
|
|
761
|
+
var pathParams = {
|
|
762
|
+
'id': id
|
|
763
|
+
};
|
|
764
|
+
var queryParams = {};
|
|
765
|
+
var headerParams = {};
|
|
766
|
+
var formParams = {};
|
|
767
|
+
var authNames = ['basicAuth', 'bearerAuth'];
|
|
768
|
+
var contentTypes = ['application/json'];
|
|
769
|
+
var accepts = [];
|
|
770
|
+
var returnType = null;
|
|
771
|
+
return this.apiClient.callApi('/api/v1/users/{id}/superadmin', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Callback function to receive the result of the updateCurrentUserPassword operation.
|
|
776
|
+
* @callback module:api/UsersApi~updateCurrentUserPasswordCallback
|
|
777
|
+
* @param {String} error Error message, if any.
|
|
778
|
+
* @param {Object} data The data returned by the service call.
|
|
779
|
+
* @param {String} response The complete HTTP response.
|
|
780
|
+
*/
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* Update authenticated user password
|
|
784
|
+
* Changes the login password for the authenticated user.
|
|
785
|
+
* @param {module:model/MeControllerApiUpdatePasswordRequest} meControllerApiUpdatePasswordRequest
|
|
786
|
+
* @param {module:api/UsersApi~updateCurrentUserPasswordCallback} callback The callback function, accepting three arguments: error, data, response
|
|
787
|
+
* data is of type: {@link Object}
|
|
788
|
+
*/
|
|
789
|
+
}, {
|
|
790
|
+
key: "updateCurrentUserPassword",
|
|
791
|
+
value: function updateCurrentUserPassword(meControllerApiUpdatePasswordRequest, callback) {
|
|
792
|
+
var postBody = meControllerApiUpdatePasswordRequest;
|
|
793
|
+
// verify the required parameter 'meControllerApiUpdatePasswordRequest' is set
|
|
794
|
+
if (meControllerApiUpdatePasswordRequest === undefined || meControllerApiUpdatePasswordRequest === null) {
|
|
795
|
+
throw new Error("Missing the required parameter 'meControllerApiUpdatePasswordRequest' when calling updateCurrentUserPassword");
|
|
796
|
+
}
|
|
797
|
+
var pathParams = {};
|
|
798
|
+
var queryParams = {};
|
|
799
|
+
var headerParams = {};
|
|
800
|
+
var formParams = {};
|
|
801
|
+
var authNames = ['basicAuth', 'bearerAuth'];
|
|
802
|
+
var contentTypes = ['application/json'];
|
|
803
|
+
var accepts = ['application/json'];
|
|
804
|
+
var returnType = Object;
|
|
805
|
+
return this.apiClient.callApi('/api/v1/me/password', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* Callback function to receive the result of the updateUser operation.
|
|
810
|
+
* @callback module:api/UsersApi~updateUserCallback
|
|
811
|
+
* @param {String} error Error message, if any.
|
|
812
|
+
* @param {module:model/IAMUserControllerApiUser} data The data returned by the service call.
|
|
813
|
+
* @param {String} response The complete HTTP response.
|
|
814
|
+
*/
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* Update a user account
|
|
818
|
+
* Superadmin-only. Update an existing user account with an optional password based authentication method.
|
|
819
|
+
* @param {String} id The user id
|
|
820
|
+
* @param {module:model/IAMUserControllerApiCreateOrUpdateUserRequest} iAMUserControllerApiCreateOrUpdateUserRequest
|
|
821
|
+
* @param {module:api/UsersApi~updateUserCallback} callback The callback function, accepting three arguments: error, data, response
|
|
822
|
+
* data is of type: {@link module:model/IAMUserControllerApiUser}
|
|
823
|
+
*/
|
|
824
|
+
}, {
|
|
825
|
+
key: "updateUser",
|
|
826
|
+
value: function updateUser(id, iAMUserControllerApiCreateOrUpdateUserRequest, callback) {
|
|
827
|
+
var postBody = iAMUserControllerApiCreateOrUpdateUserRequest;
|
|
828
|
+
// verify the required parameter 'id' is set
|
|
829
|
+
if (id === undefined || id === null) {
|
|
830
|
+
throw new Error("Missing the required parameter 'id' when calling updateUser");
|
|
831
|
+
}
|
|
832
|
+
// verify the required parameter 'iAMUserControllerApiCreateOrUpdateUserRequest' is set
|
|
833
|
+
if (iAMUserControllerApiCreateOrUpdateUserRequest === undefined || iAMUserControllerApiCreateOrUpdateUserRequest === null) {
|
|
834
|
+
throw new Error("Missing the required parameter 'iAMUserControllerApiCreateOrUpdateUserRequest' when calling updateUser");
|
|
835
|
+
}
|
|
836
|
+
var pathParams = {
|
|
837
|
+
'id': id
|
|
838
|
+
};
|
|
839
|
+
var queryParams = {};
|
|
840
|
+
var headerParams = {};
|
|
841
|
+
var formParams = {};
|
|
842
|
+
var authNames = ['basicAuth', 'bearerAuth'];
|
|
843
|
+
var contentTypes = ['application/json'];
|
|
844
|
+
var accepts = ['application/json'];
|
|
845
|
+
var returnType = _IAMUserControllerApiUser["default"];
|
|
846
|
+
return this.apiClient.callApi('/api/v1/users/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* Callback function to receive the result of the updateUserGroups operation.
|
|
851
|
+
* @callback module:api/UsersApi~updateUserGroupsCallback
|
|
852
|
+
* @param {String} error Error message, if any.
|
|
853
|
+
* @param data This operation does not return a value.
|
|
854
|
+
* @param {String} response The complete HTTP response.
|
|
855
|
+
*/
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
* Update the list of groups a user belongs to for the given tenant
|
|
859
|
+
* @param {String} id The user ID
|
|
860
|
+
* @param {String} tenant
|
|
861
|
+
* @param {module:model/IAMUserGroupControllerApiUpdateUserGroupsRequest} iAMUserGroupControllerApiUpdateUserGroupsRequest
|
|
862
|
+
* @param {module:api/UsersApi~updateUserGroupsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
863
|
+
*/
|
|
864
|
+
}, {
|
|
865
|
+
key: "updateUserGroups",
|
|
866
|
+
value: function updateUserGroups(id, tenant, iAMUserGroupControllerApiUpdateUserGroupsRequest, callback) {
|
|
867
|
+
var postBody = iAMUserGroupControllerApiUpdateUserGroupsRequest;
|
|
868
|
+
// verify the required parameter 'id' is set
|
|
869
|
+
if (id === undefined || id === null) {
|
|
870
|
+
throw new Error("Missing the required parameter 'id' when calling updateUserGroups");
|
|
871
|
+
}
|
|
872
|
+
// verify the required parameter 'tenant' is set
|
|
873
|
+
if (tenant === undefined || tenant === null) {
|
|
874
|
+
throw new Error("Missing the required parameter 'tenant' when calling updateUserGroups");
|
|
875
|
+
}
|
|
876
|
+
// verify the required parameter 'iAMUserGroupControllerApiUpdateUserGroupsRequest' is set
|
|
877
|
+
if (iAMUserGroupControllerApiUpdateUserGroupsRequest === undefined || iAMUserGroupControllerApiUpdateUserGroupsRequest === null) {
|
|
878
|
+
throw new Error("Missing the required parameter 'iAMUserGroupControllerApiUpdateUserGroupsRequest' when calling updateUserGroups");
|
|
879
|
+
}
|
|
880
|
+
var pathParams = {
|
|
881
|
+
'id': id,
|
|
882
|
+
'tenant': tenant
|
|
883
|
+
};
|
|
884
|
+
var queryParams = {};
|
|
885
|
+
var headerParams = {};
|
|
886
|
+
var formParams = {};
|
|
887
|
+
var authNames = ['basicAuth', 'bearerAuth'];
|
|
888
|
+
var contentTypes = ['application/json'];
|
|
889
|
+
var accepts = [];
|
|
890
|
+
var returnType = null;
|
|
891
|
+
return this.apiClient.callApi('/api/v1/{tenant}/users/{id}/groups', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
892
|
+
}
|
|
893
|
+
}]);
|
|
894
|
+
}();
|