From 491df61fbf24b8b431d52389db2f8220930e8194 Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Mon, 15 Jun 2026 21:35:19 +0300 Subject: [PATCH] chore(hey-api): disable api validator [BE-13102] (#2918) --- .../generated-api/portainer/sdk.gen.ts | 3162 +---------------- openapi-ts.config.ts | 2 +- 2 files changed, 5 insertions(+), 3159 deletions(-) diff --git a/app/react/portainer/generated-api/portainer/sdk.gen.ts b/app/react/portainer/generated-api/portainer/sdk.gen.ts index e8dcc606b7..48b84a142c 100644 --- a/app/react/portainer/generated-api/portainer/sdk.gen.ts +++ b/app/react/portainer/generated-api/portainer/sdk.gen.ts @@ -1,7 +1,5 @@ // This file is auto-generated by @hey-api/openapi-ts -import * as z from 'zod'; - import { type Client, formDataBodySerializer, @@ -778,592 +776,6 @@ import type { WebhookInvokeErrors, WebhookInvokeResponses, } from './types.gen'; -import { - zAuthenticateUserBody, - zAuthenticateUserResponse, - zBackupBody, - zCreateKubernetesIngressBody, - zCreateKubernetesIngressPath, - zCreateKubernetesIngressResponse, - zCreateKubernetesNamespaceBody, - zCreateKubernetesNamespacePath, - zCreateKubernetesNamespaceResponse, - zCreateKubernetesServiceBody, - zCreateKubernetesServicePath, - zCreateKubernetesServiceResponse, - zCurrentUserInspectResponse, - zCustomTemplateCreateFileBody, - zCustomTemplateCreateFileResponse, - zCustomTemplateCreateRepositoryBody, - zCustomTemplateCreateRepositoryResponse, - zCustomTemplateCreateStringBody, - zCustomTemplateCreateStringResponse, - zCustomTemplateDeletePath, - zCustomTemplateDeleteResponse, - zCustomTemplateFilePath, - zCustomTemplateFileResponse, - zCustomTemplateGitFetchPath, - zCustomTemplateGitFetchResponse, - zCustomTemplateInspectPath, - zCustomTemplateInspectResponse, - zCustomTemplateListQuery, - zCustomTemplateListResponse, - zCustomTemplateUpdateBody, - zCustomTemplateUpdatePath, - zCustomTemplateUpdateResponse, - zDeleteClusterRoleBindingsBody, - zDeleteClusterRoleBindingsPath, - zDeleteClusterRoleBindingsResponse, - zDeleteClusterRolesBody, - zDeleteClusterRolesPath, - zDeleteClusterRolesResponse, - zDeleteCronJobsBody, - zDeleteCronJobsPath, - zDeleteCronJobsResponse, - zDeleteJobsBody, - zDeleteJobsPath, - zDeleteJobsResponse, - zDeleteKubernetesIngressesBody, - zDeleteKubernetesIngressesPath, - zDeleteKubernetesIngressesResponse, - zDeleteKubernetesNamespacePath, - zDeleteKubernetesNamespaceResponse, - zDeleteKubernetesPersistentVolumeClaimsBody, - zDeleteKubernetesPersistentVolumeClaimsPath, - zDeleteKubernetesPersistentVolumeClaimsResponse, - zDeleteKubernetesPersistentVolumesBody, - zDeleteKubernetesPersistentVolumesPath, - zDeleteKubernetesPersistentVolumesResponse, - zDeleteKubernetesPodPath, - zDeleteKubernetesPodResponse, - zDeleteKubernetesServicesBody, - zDeleteKubernetesServicesPath, - zDeleteKubernetesServicesResponse, - zDeleteKubernetesStorageClassesBody, - zDeleteKubernetesStorageClassesPath, - zDeleteKubernetesStorageClassesResponse, - zDeleteRoleBindingsBody, - zDeleteRoleBindingsPath, - zDeleteRoleBindingsResponse, - zDeleteRolesBody, - zDeleteRolesPath, - zDeleteRolesResponse, - zDeleteServiceAccountsBody, - zDeleteServiceAccountsPath, - zDeleteServiceAccountsResponse, - zDeleteWebhooksByIdPath, - zDescribeResourcePath, - zDescribeResourceQuery, - zDescribeResourceResponse, - zDockerContainerGpusInspectPath, - zDockerContainerGpusInspectResponse, - zDockerDashboardPath, - zDockerDashboardResponse2, - zDockerImagesListPath, - zDockerImagesListQuery, - zDockerImagesListResponse, - zDrainNodePath, - zDrainNodeResponse, - zEdgeGroupCreateBody, - zEdgeGroupCreateResponse, - zEdgeGroupDeletePath, - zEdgeGroupDeleteResponse, - zEdgeGroupInspectPath, - zEdgeGroupInspectResponse, - zEdgeGroupListResponse, - zEdgeGroupUpdateBody, - zEdgeGroupUpdatePath, - zEdgeGroupUpdateResponse, - zEdgeJobCreateFileBody, - zEdgeJobCreateFileResponse, - zEdgeJobCreateStringBody, - zEdgeJobCreateStringResponse, - zEdgeJobDeletePath, - zEdgeJobDeleteResponse, - zEdgeJobFilePath, - zEdgeJobFileResponse, - zEdgeJobInspectPath, - zEdgeJobInspectResponse, - zEdgeJobListResponse, - zEdgeJobTaskLogsInspectPath, - zEdgeJobTaskLogsInspectResponse, - zEdgeJobTasksClearPath, - zEdgeJobTasksClearResponse, - zEdgeJobTasksCollectPath, - zEdgeJobTasksCollectResponse, - zEdgeJobTasksListPath, - zEdgeJobTasksListResponse, - zEdgeJobUpdateBody, - zEdgeJobUpdatePath, - zEdgeJobUpdateResponse, - zEdgeStackCreateFileBody, - zEdgeStackCreateFileQuery, - zEdgeStackCreateFileResponse, - zEdgeStackCreateRepositoryBody, - zEdgeStackCreateRepositoryQuery, - zEdgeStackCreateRepositoryResponse, - zEdgeStackCreateStringBody, - zEdgeStackCreateStringQuery, - zEdgeStackCreateStringResponse, - zEdgeStackDeletePath, - zEdgeStackDeleteResponse, - zEdgeStackFilePath, - zEdgeStackFileResponse, - zEdgeStackInspectPath, - zEdgeStackInspectResponse, - zEdgeStackListQuery, - zEdgeStackListResponse, - zEdgeStackStatusUpdateBody, - zEdgeStackStatusUpdatePath, - zEdgeStackStatusUpdateResponse, - zEdgeStackUpdateBody, - zEdgeStackUpdatePath, - zEdgeStackUpdateResponse, - zEndpointAssociationDeletePath, - zEndpointAssociationDeleteResponse, - zEndpointCreateBody, - zEndpointCreateGlobalKeyResponse, - zEndpointCreateResponse, - zEndpointDeleteBatchBody, - zEndpointDeleteBatchResponse, - zEndpointDeletePath, - zEndpointDeleteResponse, - zEndpointDockerhubStatusPath, - zEndpointDockerhubStatusResponse, - zEndpointForceUpdateServiceBody, - zEndpointForceUpdateServicePath, - zEndpointForceUpdateServiceResponse, - zEndpointGroupAddEndpointPath, - zEndpointGroupAddEndpointResponse, - zEndpointGroupDeleteEndpointPath, - zEndpointGroupDeleteEndpointResponse, - zEndpointGroupDeletePath, - zEndpointGroupDeleteResponse, - zEndpointGroupListQuery, - zEndpointGroupListResponse, - zEndpointGroupUpdateBody, - zEndpointGroupUpdatePath, - zEndpointGroupUpdateResponse, - zEndpointInspectPath, - zEndpointInspectQuery, - zEndpointInspectResponse, - zEndpointListQuery, - zEndpointListResponse, - zEndpointRegistriesListPath, - zEndpointRegistriesListQuery, - zEndpointRegistriesListResponse, - zEndpointRegistryAccessBody, - zEndpointRegistryAccessPath, - zEndpointRegistryAccessResponse, - zEndpointSettingsUpdateBody, - zEndpointSettingsUpdatePath, - zEndpointSettingsUpdateResponse, - zEndpointSnapshotPath, - zEndpointSnapshotResponse, - zEndpointSnapshotsResponse, - zEndpointSummaryCountsResponse, - zEndpointUpdateBody, - zEndpointUpdatePath, - zEndpointUpdateRelationsBody, - zEndpointUpdateRelationsResponse, - zEndpointUpdateResponse, - zGetAllKubernetesApplicationsCountPath, - zGetAllKubernetesApplicationsCountResponse, - zGetAllKubernetesApplicationsPath, - zGetAllKubernetesApplicationsQuery, - zGetAllKubernetesApplicationsResponse, - zGetAllKubernetesClusterIngressesCountPath, - zGetAllKubernetesClusterIngressesCountResponse, - zGetAllKubernetesClusterIngressesPath, - zGetAllKubernetesClusterIngressesQuery, - zGetAllKubernetesClusterIngressesResponse, - zGetAllKubernetesClusterRoleBindingsPath, - zGetAllKubernetesClusterRoleBindingsResponse, - zGetAllKubernetesClusterRolesPath, - zGetAllKubernetesClusterRolesResponse, - zGetAllKubernetesConfigMapsCountPath, - zGetAllKubernetesConfigMapsCountResponse, - zGetAllKubernetesConfigMapsPath, - zGetAllKubernetesConfigMapsQuery, - zGetAllKubernetesConfigMapsResponse, - zGetAllKubernetesEventsPath, - zGetAllKubernetesEventsQuery, - zGetAllKubernetesEventsResponse, - zGetAllKubernetesIngressControllersPath, - zGetAllKubernetesIngressControllersQuery, - zGetAllKubernetesIngressControllersResponse, - zGetAllKubernetesIngressesPath, - zGetAllKubernetesIngressesResponse, - zGetAllKubernetesPersistentVolumeClaimsPath, - zGetAllKubernetesPersistentVolumeClaimsResponse, - zGetAllKubernetesPersistentVolumesPath, - zGetAllKubernetesPersistentVolumesResponse, - zGetAllKubernetesServicesCountPath, - zGetAllKubernetesServicesCountResponse, - zGetAllKubernetesStorageClassesPath, - zGetAllKubernetesStorageClassesResponse, - zGetAllKubernetesVolumesCountPath, - zGetAllKubernetesVolumesCountResponse, - zGetAllKubernetesVolumesPath, - zGetAllKubernetesVolumesQuery, - zGetAllKubernetesVolumesResponse, - zGetApplicationsResourcesPath, - zGetApplicationsResourcesQuery, - zGetApplicationsResourcesResponse, - zGetEndpointGroupsByIdPath, - zGetEndpointGroupsByIdQuery, - zGetEndpointGroupsByIdResponse, - zGetKubernetesConfigMapPath, - zGetKubernetesConfigMapResponse, - zGetKubernetesConfigQuery, - zGetKubernetesCronJobsPath, - zGetKubernetesCronJobsResponse, - zGetKubernetesDashboardPath, - zGetKubernetesDashboardResponse, - zGetKubernetesEventsForNamespacePath, - zGetKubernetesEventsForNamespaceQuery, - zGetKubernetesEventsForNamespaceResponse, - zGetKubernetesIngressControllersByNamespacePath, - zGetKubernetesIngressControllersByNamespaceResponse, - zGetKubernetesIngressPath, - zGetKubernetesIngressResponse, - zGetKubernetesJobsPath, - zGetKubernetesJobsQuery, - zGetKubernetesJobsResponse, - zGetKubernetesMaxResourceLimitsPath, - zGetKubernetesMaxResourceLimitsResponse, - zGetKubernetesMetricsForAllNodesPath, - zGetKubernetesMetricsForAllNodesResponse, - zGetKubernetesMetricsForAllPodsPath, - zGetKubernetesMetricsForAllPodsResponse, - zGetKubernetesMetricsForNodePath, - zGetKubernetesMetricsForNodeResponse, - zGetKubernetesMetricsForPodPath, - zGetKubernetesMetricsForPodResponse, - zGetKubernetesNamespacePath, - zGetKubernetesNamespaceQuery, - zGetKubernetesNamespaceResponse, - zGetKubernetesNamespacesCountPath, - zGetKubernetesNamespacesCountResponse, - zGetKubernetesNamespacesPath, - zGetKubernetesNamespacesQuery, - zGetKubernetesNamespacesResponse, - zGetKubernetesNodesLimitsPath, - zGetKubernetesNodesLimitsResponse, - zGetKubernetesNodesPath, - zGetKubernetesNodesResponse, - zGetKubernetesPersistentVolumeClaimPath, - zGetKubernetesPersistentVolumeClaimResponse, - zGetKubernetesPersistentVolumeClaimsInNamespacePath, - zGetKubernetesPersistentVolumeClaimsInNamespaceResponse, - zGetKubernetesPersistentVolumePath, - zGetKubernetesPersistentVolumeResponse, - zGetKubernetesRbacStatusPath, - zGetKubernetesRbacStatusResponse, - zGetKubernetesRoleBindingsPath, - zGetKubernetesRoleBindingsResponse, - zGetKubernetesRolesPath, - zGetKubernetesRolesResponse, - zGetKubernetesSecretPath, - zGetKubernetesSecretResponse, - zGetKubernetesSecretsCountPath, - zGetKubernetesSecretsCountResponse, - zGetKubernetesSecretsPath, - zGetKubernetesSecretsQuery, - zGetKubernetesSecretsResponse, - zGetKubernetesServiceAccountPath, - zGetKubernetesServiceAccountResponse, - zGetKubernetesServiceAccountsPath, - zGetKubernetesServiceAccountsResponse, - zGetKubernetesServicesByNamespacePath, - zGetKubernetesServicesByNamespaceResponse, - zGetKubernetesServicesPath, - zGetKubernetesServicesQuery, - zGetKubernetesServicesResponse, - zGetKubernetesStorageClassPath, - zGetKubernetesStorageClassResponse, - zGetKubernetesVersionPath, - zGetKubernetesVersionResponse, - zGetKubernetesVolumePath, - zGetKubernetesVolumeResponse, - zGetKubernetesVolumesInNamespacePath, - zGetKubernetesVolumesInNamespaceQuery, - zGetKubernetesVolumesInNamespaceResponse, - zGetWebhooksQuery, - zGetWebhooksResponse, - zGetWebsocketAttachQuery, - zGetWebsocketExecQuery, - zGetWebsocketKubernetesShellQuery, - zGetWebsocketPodQuery, - zGitOperationRepoFilePreviewBody, - zGitOperationRepoFilePreviewResponse, - zGitOpsSourceGetPath, - zGitOpsSourceGetResponse, - zGitOpsSourcesCreateGitBody, - zGitOpsSourcesCreateGitResponse, - zGitOpsSourcesDeletePath, - zGitOpsSourcesDeleteResponse, - zGitOpsSourcesListQuery, - zGitOpsSourcesListResponse, - zGitOpsSourcesSummaryResponse, - zGitOpsSourcesTestBody, - zGitOpsSourcesTestByIdBody, - zGitOpsSourcesTestByIdPath, - zGitOpsSourcesTestByIdResponse, - zGitOpsSourcesTestResponse, - zGitOpsSourcesUpdateGitBody, - zGitOpsSourcesUpdateGitPath, - zGitOpsSourcesUpdateGitResponse, - zGitOpsWorkflowsListQuery, - zGitOpsWorkflowsListResponse, - zGitOpsWorkflowsSummaryResponse, - zHelmDeletePath, - zHelmDeleteQuery, - zHelmDeleteResponse, - zHelmGetHistoryPath, - zHelmGetHistoryQuery, - zHelmGetHistoryResponse, - zHelmGetPath, - zHelmGetQuery, - zHelmGetResponse, - zHelmInstallBody, - zHelmInstallPath, - zHelmInstallQuery, - zHelmInstallResponse, - zHelmListPath, - zHelmListQuery, - zHelmListResponse, - zHelmRepoSearchQuery, - zHelmRepoSearchResponse, - zHelmRollbackPath, - zHelmRollbackQuery, - zHelmRollbackResponse, - zHelmShowPath, - zHelmShowQuery, - zHelmShowResponse, - zHelmUserRepositoriesListPath, - zHelmUserRepositoriesListResponse, - zHelmUserRepositoryCreateBody, - zHelmUserRepositoryCreatePath, - zHelmUserRepositoryCreateResponse, - zHelmUserRepositoryDeletePath, - zHelmUserRepositoryDeleteResponse, - zKubernetesNamespacesToggleSystemBody, - zKubernetesNamespacesToggleSystemPath, - zKubernetesNamespacesToggleSystemResponse, - zLdapCheckBody, - zLdapCheckResponse, - zLogoutResponse, - zMotdResponse, - zPostEndpointGroupsBody, - zPostEndpointGroupsResponse, - zPostEndpointsByIdDockerV2BrowsePutBody, - zPostEndpointsByIdDockerV2BrowsePutPath, - zPostEndpointsByIdDockerV2BrowsePutQuery, - zPostEndpointsByIdDockerV2BrowsePutResponse, - zPostWebhooksBody, - zPostWebhooksByIdPath, - zPostWebhooksResponse, - zPutWebhooksByIdBody, - zPutWebhooksByIdPath, - zPutWebhooksByIdResponse, - zRegistryConfigureBody, - zRegistryConfigurePath, - zRegistryConfigureResponse, - zRegistryCreateBody, - zRegistryCreateResponse, - zRegistryDeletePath, - zRegistryDeleteResponse, - zRegistryInspectPath, - zRegistryInspectResponse, - zRegistryListResponse, - zRegistryPingBody, - zRegistryPingResponse, - zRegistryUpdateBody, - zRegistryUpdatePath, - zRegistryUpdateResponse, - zResizeKubernetesPersistentVolumeClaimBody, - zResizeKubernetesPersistentVolumeClaimPath, - zResizeKubernetesPersistentVolumeClaimResponse, - zResourceControlCreateBody, - zResourceControlCreateResponse, - zResourceControlDeletePath, - zResourceControlDeleteResponse, - zResourceControlUpdateBody, - zResourceControlUpdatePath, - zResourceControlUpdateResponse, - zRestartKubernetesPodPath, - zRestartKubernetesPodResponse, - zRestoreBody, - zRestoreHeaders, - zRoleListResponse, - zSetDefaultKubernetesStorageClassPath, - zSetDefaultKubernetesStorageClassResponse, - zSettingsInspectResponse, - zSettingsPublicResponse, - zSettingsUpdateBody, - zSettingsUpdateResponse, - zSslInspectResponse, - zSslUpdateBody, - zSslUpdateResponse, - zStackAssociatePath, - zStackAssociateQuery, - zStackAssociateResponse, - zStackCreateDockerStandaloneFileBody, - zStackCreateDockerStandaloneFileQuery, - zStackCreateDockerStandaloneFileResponse, - zStackCreateDockerStandaloneRepositoryBody, - zStackCreateDockerStandaloneRepositoryQuery, - zStackCreateDockerStandaloneRepositoryResponse, - zStackCreateDockerStandaloneStringBody, - zStackCreateDockerStandaloneStringQuery, - zStackCreateDockerStandaloneStringResponse, - zStackCreateDockerSwarmFileBody, - zStackCreateDockerSwarmFileQuery, - zStackCreateDockerSwarmFileResponse, - zStackCreateDockerSwarmRepositoryBody, - zStackCreateDockerSwarmRepositoryQuery, - zStackCreateDockerSwarmRepositoryResponse, - zStackCreateDockerSwarmStringBody, - zStackCreateDockerSwarmStringQuery, - zStackCreateDockerSwarmStringResponse, - zStackCreateKubernetesFileBody, - zStackCreateKubernetesFileQuery, - zStackCreateKubernetesFileResponse, - zStackCreateKubernetesGitBody, - zStackCreateKubernetesGitQuery, - zStackCreateKubernetesGitResponse, - zStackCreateKubernetesUrlBody, - zStackCreateKubernetesUrlQuery, - zStackCreateKubernetesUrlResponse, - zStackDeleteKubernetesByNamePath, - zStackDeleteKubernetesByNameQuery, - zStackDeleteKubernetesByNameResponse, - zStackDeletePath, - zStackDeleteQuery, - zStackDeleteResponse, - zStackFileInspectPath, - zStackFileInspectResponse, - zStackGitRedeployBody, - zStackGitRedeployPath, - zStackGitRedeployQuery, - zStackGitRedeployResponse, - zStackInspectPath, - zStackInspectResponse, - zStackListQuery, - zStackListResponse, - zStackMigrateBody, - zStackMigratePath, - zStackMigrateQuery, - zStackMigrateResponse, - zStackStartPath, - zStackStartQuery, - zStackStartResponse, - zStackStopPath, - zStackStopQuery, - zStackStopResponse, - zStackUpdateBody, - zStackUpdateGitBody, - zStackUpdateGitPath, - zStackUpdateGitQuery, - zStackUpdateGitResponse, - zStackUpdatePath, - zStackUpdateQuery, - zStackUpdateResponse, - zSystemInfoResponse, - zSystemNodesCountResponse2, - zSystemStatusResponse, - zSystemUpgradeResponse, - zSystemVersionResponse2, - zTagCreateBody, - zTagCreateResponse, - zTagDeletePath, - zTagDeleteResponse, - zTagListResponse, - zTeamCreateBody, - zTeamCreateResponse, - zTeamDeletePath, - zTeamDeleteResponse, - zTeamInspectPath, - zTeamInspectResponse, - zTeamListQuery, - zTeamListResponse, - zTeamMembershipCreateBody, - zTeamMembershipCreateResponse, - zTeamMembershipDeletePath, - zTeamMembershipDeleteResponse, - zTeamMembershipListResponse, - zTeamMembershipsPath, - zTeamMembershipsResponse, - zTeamMembershipUpdateBody, - zTeamMembershipUpdatePath, - zTeamMembershipUpdateResponse, - zTeamUpdateBody, - zTeamUpdatePath, - zTeamUpdateResponse, - zTemplateFilePath, - zTemplateFileResponse, - zTemplateListResponse, - zUpdateKubernetesIngressBody, - zUpdateKubernetesIngressControllersBody, - zUpdateKubernetesIngressControllersByNamespaceBody, - zUpdateKubernetesIngressControllersByNamespacePath, - zUpdateKubernetesIngressControllersByNamespaceResponse, - zUpdateKubernetesIngressControllersPath, - zUpdateKubernetesIngressControllersResponse, - zUpdateKubernetesIngressPath, - zUpdateKubernetesIngressResponse, - zUpdateKubernetesNamespaceBody, - zUpdateKubernetesNamespaceDeprecatedBody, - zUpdateKubernetesNamespaceDeprecatedPath, - zUpdateKubernetesNamespaceDeprecatedResponse, - zUpdateKubernetesNamespacePath, - zUpdateKubernetesNamespaceResponse, - zUpdateKubernetesPersistentVolumeReclaimPolicyBody, - zUpdateKubernetesPersistentVolumeReclaimPolicyPath, - zUpdateKubernetesPersistentVolumeReclaimPolicyResponse, - zUpdateKubernetesServiceAccountImagePullSecretsBody, - zUpdateKubernetesServiceAccountImagePullSecretsPath, - zUpdateKubernetesServiceAccountImagePullSecretsResponse, - zUpdateKubernetesServiceBody, - zUpdateKubernetesServicePath, - zUpdateKubernetesServiceResponse, - zUploadTlsBody, - zUploadTlsPath, - zUploadTlsResponse, - zUserAdminCheckResponse, - zUserAdminInitBody, - zUserAdminInitHeaders, - zUserAdminInitResponse, - zUserCreateBody, - zUserCreateResponse, - zUserDeletePath, - zUserDeleteResponse, - zUserEffectiveAccessInspectPath, - zUserEffectiveAccessInspectResponse, - zUserGenerateApiKeyBody, - zUserGenerateApiKeyPath, - zUserGenerateApiKeyResponse, - zUserGetApiKeysPath, - zUserGetApiKeysResponse, - zUserInspectPath, - zUserInspectResponse, - zUserListQuery, - zUserListResponse, - zUserMembershipsInspectPath, - zUserMembershipsInspectResponse, - zUserRemoveApiKeyPath, - zUserRemoveApiKeyResponse, - zUserUpdateBody, - zUserUpdatePasswordBody, - zUserUpdatePasswordPath, - zUserUpdatePasswordResponse, - zUserUpdatePath, - zUserUpdateResponse, - zValidateOAuthBody, - zValidateOAuthResponse, - zWebhookInvokePath, -} from './zod.gen'; export type Options< TData extends TDataShape = TDataShape, @@ -1397,17 +809,7 @@ export const authenticateUser = ( AuthenticateUserErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zAuthenticateUserBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zAuthenticateUserResponse.parseAsync(data), url: '/auth', ...options, headers: { @@ -1426,15 +828,6 @@ export const logout = ( ) => (options?.client ?? client).post( { - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => await zLogoutResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -1457,17 +850,7 @@ export const validateOAuth = ( ValidateOAuthErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zValidateOAuthBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zValidateOAuthResponse.parseAsync(data), url: '/auth/oauth/validate', ...options, headers: { @@ -1487,14 +870,6 @@ export const backup = ( ) => (options?.client ?? client).post( { - requestValidator: async (data) => - await z - .object({ - body: zBackupBody.optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -1523,17 +898,7 @@ export const customTemplateList = ( ThrowOnError >({ querySerializer: { parameters: { type: { array: { explode: false } } } }, - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: zCustomTemplateListQuery, - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zCustomTemplateListResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -1556,16 +921,6 @@ export const customTemplateDelete = ( CustomTemplateDeleteErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zCustomTemplateDeletePath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zCustomTemplateDeleteResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -1588,17 +943,7 @@ export const customTemplateInspect = ( CustomTemplateInspectErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zCustomTemplateInspectPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zCustomTemplateInspectResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -1621,17 +966,7 @@ export const customTemplateUpdate = ( CustomTemplateUpdateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zCustomTemplateUpdateBody, - path: zCustomTemplateUpdatePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zCustomTemplateUpdateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -1658,17 +993,7 @@ export const customTemplateFile = ( CustomTemplateFileErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zCustomTemplateFilePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zCustomTemplateFileResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -1691,17 +1016,7 @@ export const customTemplateGitFetch = ( CustomTemplateGitFetchErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zCustomTemplateGitFetchPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zCustomTemplateGitFetchResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -1725,17 +1040,7 @@ export const customTemplateCreateFile = ( ThrowOnError >({ ...formDataBodySerializer, - requestValidator: async (data) => - await z - .object({ - body: zCustomTemplateCreateFileBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zCustomTemplateCreateFileResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -1764,17 +1069,7 @@ export const customTemplateCreateRepository = < CustomTemplateCreateRepositoryErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zCustomTemplateCreateRepositoryBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zCustomTemplateCreateRepositoryResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -1801,17 +1096,7 @@ export const customTemplateCreateString = ( CustomTemplateCreateStringErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zCustomTemplateCreateStringBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zCustomTemplateCreateStringResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -1837,17 +1122,7 @@ export const dockerContainerGpusInspect = ( DockerContainerGpusInspectErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zDockerContainerGpusInspectPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zDockerContainerGpusInspectResponse.parseAsync(data), security: [{ name: 'Authorization', type: 'apiKey' }], url: '/docker/{environmentId}/containers/{containerId}/gpus', ...options, @@ -1866,17 +1141,7 @@ export const dockerDashboard = ( DockerDashboardErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zDockerDashboardPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zDockerDashboardResponse2.parseAsync(data), security: [{ name: 'Authorization', type: 'apiKey' }], url: '/docker/{environmentId}/dashboard', ...options, @@ -1895,17 +1160,7 @@ export const dockerImagesList = ( DockerImagesListErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zDockerImagesListPath, - query: zDockerImagesListQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zDockerImagesListResponse.parseAsync(data), security: [{ name: 'Authorization', type: 'apiKey' }], url: '/docker/{environmentId}/images', ...options, @@ -1924,17 +1179,7 @@ export const edgeGroupList = ( EdgeGroupListErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEdgeGroupListResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -1956,17 +1201,7 @@ export const edgeGroupCreate = ( EdgeGroupCreateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zEdgeGroupCreateBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEdgeGroupCreateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -1992,16 +1227,6 @@ export const edgeGroupDelete = ( EdgeGroupDeleteErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zEdgeGroupDeletePath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zEdgeGroupDeleteResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2023,17 +1248,7 @@ export const edgeGroupInspect = ( EdgeGroupInspectErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zEdgeGroupInspectPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEdgeGroupInspectResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2055,17 +1270,7 @@ export const edgeGroupUpdate = ( EdgeGroupUpdateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zEdgeGroupUpdateBody, - path: zEdgeGroupUpdatePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEdgeGroupUpdateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2091,17 +1296,7 @@ export const edgeJobList = ( EdgeJobListErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEdgeJobListResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2123,16 +1318,6 @@ export const edgeJobDelete = ( EdgeJobDeleteErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zEdgeJobDeletePath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zEdgeJobDeleteResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2154,17 +1339,7 @@ export const edgeJobInspect = ( EdgeJobInspectErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zEdgeJobInspectPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEdgeJobInspectResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2186,17 +1361,7 @@ export const edgeJobUpdate = ( EdgeJobUpdateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zEdgeJobUpdateBody, - path: zEdgeJobUpdatePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEdgeJobUpdateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2222,17 +1387,7 @@ export const edgeJobFile = ( EdgeJobFileErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zEdgeJobFilePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEdgeJobFileResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2254,17 +1409,7 @@ export const edgeJobTasksList = ( EdgeJobTasksListErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zEdgeJobTasksListPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEdgeJobTasksListResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2286,16 +1431,6 @@ export const edgeJobTasksClear = ( EdgeJobTasksClearErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zEdgeJobTasksClearPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zEdgeJobTasksClearResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2317,17 +1452,7 @@ export const edgeJobTaskLogsInspect = ( EdgeJobTaskLogsInspectErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zEdgeJobTaskLogsInspectPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEdgeJobTaskLogsInspectResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2349,16 +1474,6 @@ export const edgeJobTasksCollect = ( EdgeJobTasksCollectErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zEdgeJobTasksCollectPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zEdgeJobTasksCollectResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2381,17 +1496,7 @@ export const edgeJobCreateFile = ( ThrowOnError >({ ...formDataBodySerializer, - requestValidator: async (data) => - await z - .object({ - body: zEdgeJobCreateFileBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEdgeJobCreateFileResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2417,17 +1522,7 @@ export const edgeJobCreateString = ( EdgeJobCreateStringErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zEdgeJobCreateStringBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEdgeJobCreateStringResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2453,17 +1548,7 @@ export const edgeStackList = ( EdgeStackListErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: zEdgeStackListQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEdgeStackListResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2485,16 +1570,6 @@ export const edgeStackDelete = ( EdgeStackDeleteErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zEdgeStackDeletePath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zEdgeStackDeleteResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2516,17 +1591,7 @@ export const edgeStackInspect = ( EdgeStackInspectErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zEdgeStackInspectPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEdgeStackInspectResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2548,17 +1613,7 @@ export const edgeStackUpdate = ( EdgeStackUpdateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zEdgeStackUpdateBody, - path: zEdgeStackUpdatePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEdgeStackUpdateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2584,17 +1639,7 @@ export const edgeStackFile = ( EdgeStackFileErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zEdgeStackFilePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEdgeStackFileResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2616,17 +1661,7 @@ export const edgeStackStatusUpdate = ( EdgeStackStatusUpdateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zEdgeStackStatusUpdateBody, - path: zEdgeStackStatusUpdatePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEdgeStackStatusUpdateResponse.parseAsync(data), url: '/edge_stacks/{id}/status', ...options, headers: { @@ -2649,17 +1684,7 @@ export const edgeStackCreateFile = ( ThrowOnError >({ ...formDataBodySerializer, - requestValidator: async (data) => - await z - .object({ - body: zEdgeStackCreateFileBody, - path: z.never().optional(), - query: zEdgeStackCreateFileQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEdgeStackCreateFileResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2685,17 +1710,7 @@ export const edgeStackCreateRepository = ( EdgeStackCreateRepositoryErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zEdgeStackCreateRepositoryBody, - path: z.never().optional(), - query: zEdgeStackCreateRepositoryQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEdgeStackCreateRepositoryResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2721,17 +1736,7 @@ export const edgeStackCreateString = ( EdgeStackCreateStringErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zEdgeStackCreateStringBody, - path: z.never().optional(), - query: zEdgeStackCreateStringQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEdgeStackCreateStringResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2760,17 +1765,7 @@ export const endpointGroupList = ( EndpointGroupListErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: zEndpointGroupListQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEndpointGroupListResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2793,17 +1788,7 @@ export const postEndpointGroups = ( PostEndpointGroupsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zPostEndpointGroupsBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zPostEndpointGroupsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2830,16 +1815,6 @@ export const endpointGroupDelete = ( EndpointGroupDeleteErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zEndpointGroupDeletePath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zEndpointGroupDeleteResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2862,17 +1837,7 @@ export const getEndpointGroupsById = ( GetEndpointGroupsByIdErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetEndpointGroupsByIdPath, - query: zGetEndpointGroupsByIdQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetEndpointGroupsByIdResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2895,17 +1860,7 @@ export const endpointGroupUpdate = ( EndpointGroupUpdateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zEndpointGroupUpdateBody, - path: zEndpointGroupUpdatePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEndpointGroupUpdateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2933,16 +1888,6 @@ export const endpointGroupDeleteEndpoint = < EndpointGroupDeleteEndpointErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zEndpointGroupDeleteEndpointPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zEndpointGroupDeleteEndpointResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -2965,16 +1910,6 @@ export const endpointGroupAddEndpoint = ( EndpointGroupAddEndpointErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zEndpointGroupAddEndpointPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zEndpointGroupAddEndpointResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3014,17 +1949,7 @@ export const endpointList = ( excludeEdgeGroupIds: { array: { explode: false } }, }, }, - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: zEndpointListQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEndpointListResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3048,17 +1973,7 @@ export const endpointCreate = ( ThrowOnError >({ ...formDataBodySerializer, - requestValidator: async (data) => - await z - .object({ - body: zEndpointCreateBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEndpointCreateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3085,16 +2000,6 @@ export const endpointDelete = ( EndpointDeleteErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zEndpointDeletePath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zEndpointDeleteResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3117,17 +2022,7 @@ export const endpointInspect = ( EndpointInspectErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zEndpointInspectPath, - query: zEndpointInspectQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEndpointInspectResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3150,17 +2045,7 @@ export const endpointUpdate = ( EndpointUpdateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zEndpointUpdateBody, - path: zEndpointUpdatePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEndpointUpdateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3187,16 +2072,6 @@ export const endpointAssociationDelete = ( EndpointAssociationDeleteErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zEndpointAssociationDeletePath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zEndpointAssociationDeleteResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3222,16 +2097,6 @@ export const postEndpointsByIdDockerV2BrowsePut = < ThrowOnError >({ ...formDataBodySerializer, - requestValidator: async (data) => - await z - .object({ - body: zPostEndpointsByIdDockerV2BrowsePutBody, - path: zPostEndpointsByIdDockerV2BrowsePutPath, - query: zPostEndpointsByIdDockerV2BrowsePutQuery.optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zPostEndpointsByIdDockerV2BrowsePutResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3258,17 +2123,7 @@ export const endpointDockerhubStatus = ( EndpointDockerhubStatusErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zEndpointDockerhubStatusPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEndpointDockerhubStatusResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3291,17 +2146,7 @@ export const endpointForceUpdateService = ( EndpointForceUpdateServiceErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zEndpointForceUpdateServiceBody, - path: zEndpointForceUpdateServicePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEndpointForceUpdateServiceResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3327,16 +2172,7 @@ export const helmList = ( HelmListErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zHelmListPath, - query: zHelmListQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => await zHelmListResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3358,17 +2194,7 @@ export const helmInstall = ( HelmInstallErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zHelmInstallBody, - path: zHelmInstallPath, - query: zHelmInstallQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zHelmInstallResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3394,16 +2220,6 @@ export const helmDelete = ( HelmDeleteErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zHelmDeletePath, - query: zHelmDeleteQuery.optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zHelmDeleteResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3423,17 +2239,7 @@ export const helmGet = ( ) => (options.client ?? client).get( { - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zHelmGetPath, - query: zHelmGetQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zHelmGetResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3457,17 +2263,7 @@ export const helmGetHistory = ( HelmGetHistoryErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zHelmGetHistoryPath, - query: zHelmGetHistoryQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zHelmGetHistoryResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3490,17 +2286,7 @@ export const helmRollback = ( HelmRollbackErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zHelmRollbackPath, - query: zHelmRollbackQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zHelmRollbackResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3523,17 +2309,7 @@ export const endpointRegistriesList = ( EndpointRegistriesListErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zEndpointRegistriesListPath, - query: zEndpointRegistriesListQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEndpointRegistriesListResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3555,16 +2331,6 @@ export const endpointRegistryAccess = ( EndpointRegistryAccessErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zEndpointRegistryAccessBody, - path: zEndpointRegistryAccessPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zEndpointRegistryAccessResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3591,17 +2357,7 @@ export const endpointSettingsUpdate = ( EndpointSettingsUpdateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zEndpointSettingsUpdateBody, - path: zEndpointSettingsUpdatePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEndpointSettingsUpdateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3628,16 +2384,6 @@ export const endpointSnapshot = ( EndpointSnapshotErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zEndpointSnapshotPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zEndpointSnapshotResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3660,17 +2406,7 @@ export const endpointDeleteBatch = ( EndpointDeleteBatchErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zEndpointDeleteBatchBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEndpointDeleteBatchResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3693,20 +2429,7 @@ export const endpointCreateGlobalKey = ( EndpointCreateGlobalKeyResponses, EndpointCreateGlobalKeyErrors, ThrowOnError - >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zEndpointCreateGlobalKeyResponse.parseAsync(data), - url: '/endpoints/global-key', - ...options, - }); + >({ url: '/endpoints/global-key', ...options }); /** * Update relations for a list of environments @@ -3724,16 +2447,6 @@ export const endpointUpdateRelations = ( EndpointUpdateRelationsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zEndpointUpdateRelationsBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zEndpointUpdateRelationsResponse.parseAsync(data), security: [{ name: 'Authorization', type: 'apiKey' }], url: '/endpoints/relations', ...options, @@ -3757,16 +2470,6 @@ export const endpointSnapshots = ( EndpointSnapshotsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zEndpointSnapshotsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3789,17 +2492,7 @@ export const endpointSummaryCounts = ( EndpointSummaryCountsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zEndpointSummaryCountsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3824,17 +2517,7 @@ export const gitOperationRepoFilePreview = < GitOperationRepoFilePreviewErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zGitOperationRepoFilePreviewBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGitOperationRepoFilePreviewResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3861,17 +2544,7 @@ export const gitOpsSourcesList = ( GitOpsSourcesListErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: zGitOpsSourcesListQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGitOpsSourcesListResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3894,16 +2567,6 @@ export const gitOpsSourcesDelete = ( GitOpsSourcesDeleteErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGitOpsSourcesDeletePath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zGitOpsSourcesDeleteResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3926,17 +2589,7 @@ export const gitOpsSourceGet = ( GitOpsSourceGetErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGitOpsSourceGetPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGitOpsSourceGetResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3959,17 +2612,7 @@ export const gitOpsSourcesUpdateGit = ( GitOpsSourcesUpdateGitErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zGitOpsSourcesUpdateGitBody, - path: zGitOpsSourcesUpdateGitPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGitOpsSourcesUpdateGitResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -3996,17 +2639,7 @@ export const gitOpsSourcesTestById = ( GitOpsSourcesTestByIdErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zGitOpsSourcesTestByIdBody.optional(), - path: zGitOpsSourcesTestByIdPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGitOpsSourcesTestByIdResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4033,17 +2666,7 @@ export const gitOpsSourcesCreateGit = ( GitOpsSourcesCreateGitErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zGitOpsSourcesCreateGitBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGitOpsSourcesCreateGitResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4070,17 +2693,7 @@ export const gitOpsSourcesSummary = ( GitOpsSourcesSummaryErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGitOpsSourcesSummaryResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4103,17 +2716,7 @@ export const gitOpsSourcesTest = ( GitOpsSourcesTestErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zGitOpsSourcesTestBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGitOpsSourcesTestResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4143,17 +2746,7 @@ export const gitOpsWorkflowsList = ( querySerializer: { parameters: { endpointIds: { array: { explode: false } } }, }, - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: zGitOpsWorkflowsListQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGitOpsWorkflowsListResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4176,17 +2769,7 @@ export const gitOpsWorkflowsSummary = ( GitOpsWorkflowsSummaryErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGitOpsWorkflowsSummaryResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4211,17 +2794,7 @@ export const getAllKubernetesApplications = < GetAllKubernetesApplicationsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetAllKubernetesApplicationsPath, - query: zGetAllKubernetesApplicationsQuery, - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetAllKubernetesApplicationsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4246,17 +2819,7 @@ export const getAllKubernetesApplicationsCount = < GetAllKubernetesApplicationsCountErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetAllKubernetesApplicationsCountPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetAllKubernetesApplicationsCountResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4279,16 +2842,6 @@ export const deleteClusterRoleBindings = ( DeleteClusterRoleBindingsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zDeleteClusterRoleBindingsBody, - path: zDeleteClusterRoleBindingsPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zDeleteClusterRoleBindingsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4315,16 +2868,6 @@ export const deleteClusterRoles = ( DeleteClusterRolesErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zDeleteClusterRolesBody, - path: zDeleteClusterRolesPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zDeleteClusterRolesResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4353,17 +2896,7 @@ export const getAllKubernetesClusterRoleBindings = < GetAllKubernetesClusterRoleBindingsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetAllKubernetesClusterRoleBindingsPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetAllKubernetesClusterRoleBindingsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4388,17 +2921,7 @@ export const getAllKubernetesClusterRoles = < GetAllKubernetesClusterRolesErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetAllKubernetesClusterRolesPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetAllKubernetesClusterRolesResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4421,17 +2944,7 @@ export const getAllKubernetesConfigMaps = ( GetAllKubernetesConfigMapsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetAllKubernetesConfigMapsPath, - query: zGetAllKubernetesConfigMapsQuery, - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetAllKubernetesConfigMapsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4456,17 +2969,7 @@ export const getAllKubernetesConfigMapsCount = < GetAllKubernetesConfigMapsCountErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetAllKubernetesConfigMapsCountPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetAllKubernetesConfigMapsCountResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4489,17 +2992,7 @@ export const getKubernetesCronJobs = ( GetKubernetesCronJobsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesCronJobsPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesCronJobsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4522,16 +3015,6 @@ export const deleteCronJobs = ( DeleteCronJobsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zDeleteCronJobsBody, - path: zDeleteCronJobsPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zDeleteCronJobsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4558,17 +3041,7 @@ export const getKubernetesDashboard = ( GetKubernetesDashboardErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesDashboardPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesDashboardResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4591,17 +3064,7 @@ export const describeResource = ( DescribeResourceErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zDescribeResourcePath, - query: zDescribeResourceQuery, - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zDescribeResourceResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4624,17 +3087,7 @@ export const getAllKubernetesEvents = ( GetAllKubernetesEventsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetAllKubernetesEventsPath, - query: zGetAllKubernetesEventsQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetAllKubernetesEventsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4659,17 +3112,7 @@ export const getAllKubernetesIngressControllers = < GetAllKubernetesIngressControllersErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetAllKubernetesIngressControllersPath, - query: zGetAllKubernetesIngressControllersQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetAllKubernetesIngressControllersResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4694,16 +3137,6 @@ export const updateKubernetesIngressControllers = < UpdateKubernetesIngressControllersErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zUpdateKubernetesIngressControllersBody, - path: zUpdateKubernetesIngressControllersPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zUpdateKubernetesIngressControllersResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4732,17 +3165,7 @@ export const getAllKubernetesClusterIngresses = < GetAllKubernetesClusterIngressesErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetAllKubernetesClusterIngressesPath, - query: zGetAllKubernetesClusterIngressesQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetAllKubernetesClusterIngressesResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4767,17 +3190,7 @@ export const getAllKubernetesClusterIngressesCount = < GetAllKubernetesClusterIngressesCountErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetAllKubernetesClusterIngressesCountPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetAllKubernetesClusterIngressesCountResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4800,16 +3213,6 @@ export const deleteKubernetesIngresses = ( DeleteKubernetesIngressesErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zDeleteKubernetesIngressesBody, - path: zDeleteKubernetesIngressesPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zDeleteKubernetesIngressesResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4836,17 +3239,7 @@ export const getKubernetesJobs = ( GetKubernetesJobsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesJobsPath, - query: zGetKubernetesJobsQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesJobsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4869,16 +3262,6 @@ export const deleteJobs = ( DeleteJobsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zDeleteJobsBody, - path: zDeleteJobsPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zDeleteJobsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4907,17 +3290,7 @@ export const getKubernetesMaxResourceLimits = < GetKubernetesMaxResourceLimitsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesMaxResourceLimitsPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesMaxResourceLimitsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4940,17 +3313,7 @@ export const getApplicationsResources = ( GetApplicationsResourcesErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetApplicationsResourcesPath, - query: zGetApplicationsResourcesQuery, - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetApplicationsResourcesResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -4975,17 +3338,7 @@ export const getKubernetesMetricsForAllNodes = < GetKubernetesMetricsForAllNodesErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesMetricsForAllNodesPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesMetricsForAllNodesResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5010,17 +3363,7 @@ export const getKubernetesMetricsForNode = < GetKubernetesMetricsForNodeErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesMetricsForNodePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesMetricsForNodeResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5045,17 +3388,7 @@ export const getKubernetesMetricsForAllPods = < GetKubernetesMetricsForAllPodsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesMetricsForAllPodsPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesMetricsForAllPodsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5078,17 +3411,7 @@ export const getKubernetesMetricsForPod = ( GetKubernetesMetricsForPodErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesMetricsForPodPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesMetricsForPodResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5111,16 +3434,6 @@ export const deleteKubernetesNamespace = ( DeleteKubernetesNamespaceErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zDeleteKubernetesNamespacePath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zDeleteKubernetesNamespaceResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5143,17 +3456,7 @@ export const getKubernetesNamespaces = ( GetKubernetesNamespacesErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesNamespacesPath, - query: zGetKubernetesNamespacesQuery, - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesNamespacesResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5176,17 +3479,7 @@ export const createKubernetesNamespace = ( CreateKubernetesNamespaceErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zCreateKubernetesNamespaceBody, - path: zCreateKubernetesNamespacePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zCreateKubernetesNamespaceResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5215,17 +3508,7 @@ export const updateKubernetesNamespaceDeprecated = < UpdateKubernetesNamespaceDeprecatedErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zUpdateKubernetesNamespaceDeprecatedBody, - path: zUpdateKubernetesNamespaceDeprecatedPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zUpdateKubernetesNamespaceDeprecatedResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5252,17 +3535,7 @@ export const getKubernetesNamespace = ( GetKubernetesNamespaceErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesNamespacePath, - query: zGetKubernetesNamespaceQuery, - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesNamespaceResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5285,17 +3558,7 @@ export const updateKubernetesNamespace = ( UpdateKubernetesNamespaceErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zUpdateKubernetesNamespaceBody, - path: zUpdateKubernetesNamespacePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zUpdateKubernetesNamespaceResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5322,17 +3585,7 @@ export const getKubernetesConfigMap = ( GetKubernetesConfigMapErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesConfigMapPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesConfigMapResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5357,17 +3610,7 @@ export const getKubernetesEventsForNamespace = < GetKubernetesEventsForNamespaceErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesEventsForNamespacePath, - query: zGetKubernetesEventsForNamespaceQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesEventsForNamespaceResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5392,19 +3635,7 @@ export const getKubernetesIngressControllersByNamespace = < GetKubernetesIngressControllersByNamespaceErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesIngressControllersByNamespacePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesIngressControllersByNamespaceResponse.parseAsync( - data - ), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5432,18 +3663,6 @@ export const updateKubernetesIngressControllersByNamespace = < UpdateKubernetesIngressControllersByNamespaceErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zUpdateKubernetesIngressControllersByNamespaceBody, - path: zUpdateKubernetesIngressControllersByNamespacePath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zUpdateKubernetesIngressControllersByNamespaceResponse.parseAsync( - data - ), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5470,17 +3689,7 @@ export const getAllKubernetesIngresses = ( GetAllKubernetesIngressesErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetAllKubernetesIngressesPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetAllKubernetesIngressesResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5503,16 +3712,6 @@ export const createKubernetesIngress = ( CreateKubernetesIngressErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zCreateKubernetesIngressBody, - path: zCreateKubernetesIngressPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zCreateKubernetesIngressResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5539,16 +3738,6 @@ export const updateKubernetesIngress = ( UpdateKubernetesIngressErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zUpdateKubernetesIngressBody, - path: zUpdateKubernetesIngressPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zUpdateKubernetesIngressResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5575,17 +3764,7 @@ export const getKubernetesIngress = ( GetKubernetesIngressErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesIngressPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesIngressResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5613,19 +3792,7 @@ export const getKubernetesPersistentVolumeClaimsInNamespace = < GetKubernetesPersistentVolumeClaimsInNamespaceErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesPersistentVolumeClaimsInNamespacePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesPersistentVolumeClaimsInNamespaceResponse.parseAsync( - data - ), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5650,17 +3817,7 @@ export const getKubernetesPersistentVolumeClaim = < GetKubernetesPersistentVolumeClaimErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesPersistentVolumeClaimPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesPersistentVolumeClaimResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5685,16 +3842,6 @@ export const deleteKubernetesPod = ( DeleteKubernetesPodErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zDeleteKubernetesPodPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zDeleteKubernetesPodResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5720,16 +3867,6 @@ export const restartKubernetesPod = ( RestartKubernetesPodErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zRestartKubernetesPodPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zRestartKubernetesPodResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5752,17 +3889,7 @@ export const getKubernetesSecret = ( GetKubernetesSecretErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesSecretPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesSecretResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5787,17 +3914,7 @@ export const getKubernetesServiceAccount = < GetKubernetesServiceAccountErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesServiceAccountPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesServiceAccountResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5825,18 +3942,6 @@ export const updateKubernetesServiceAccountImagePullSecrets = < UpdateKubernetesServiceAccountImagePullSecretsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zUpdateKubernetesServiceAccountImagePullSecretsBody, - path: zUpdateKubernetesServiceAccountImagePullSecretsPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zUpdateKubernetesServiceAccountImagePullSecretsResponse.parseAsync( - data - ), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5865,17 +3970,7 @@ export const getKubernetesServicesByNamespace = < GetKubernetesServicesByNamespaceErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesServicesByNamespacePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesServicesByNamespaceResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5898,16 +3993,6 @@ export const createKubernetesService = ( CreateKubernetesServiceErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zCreateKubernetesServiceBody, - path: zCreateKubernetesServicePath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zCreateKubernetesServiceResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5934,16 +4019,6 @@ export const updateKubernetesService = ( UpdateKubernetesServiceErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zUpdateKubernetesServiceBody, - path: zUpdateKubernetesServicePath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zUpdateKubernetesServiceResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -5972,16 +4047,6 @@ export const kubernetesNamespacesToggleSystem = < KubernetesNamespacesToggleSystemErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zKubernetesNamespacesToggleSystemBody, - path: zKubernetesNamespacesToggleSystemPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zKubernetesNamespacesToggleSystemResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6010,17 +4075,7 @@ export const getKubernetesVolumesInNamespace = < GetKubernetesVolumesInNamespaceErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesVolumesInNamespacePath, - query: zGetKubernetesVolumesInNamespaceQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesVolumesInNamespaceResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6045,17 +4100,7 @@ export const getKubernetesNamespacesCount = < GetKubernetesNamespacesCountErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesNamespacesCountPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesNamespacesCountResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6078,17 +4123,7 @@ export const getKubernetesNodes = ( GetKubernetesNodesErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesNodesPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesNodesResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6111,16 +4146,6 @@ export const drainNode = ( DrainNodeErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zDrainNodePath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zDrainNodeResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6143,17 +4168,7 @@ export const getKubernetesNodesLimits = ( GetKubernetesNodesLimitsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesNodesLimitsPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesNodesLimitsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6178,17 +4193,7 @@ export const getAllKubernetesPersistentVolumeClaims = < GetAllKubernetesPersistentVolumeClaimsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetAllKubernetesPersistentVolumeClaimsPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetAllKubernetesPersistentVolumeClaimsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6213,16 +4218,6 @@ export const deleteKubernetesPersistentVolumeClaims = < DeleteKubernetesPersistentVolumeClaimsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zDeleteKubernetesPersistentVolumeClaimsBody, - path: zDeleteKubernetesPersistentVolumeClaimsPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zDeleteKubernetesPersistentVolumeClaimsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6251,16 +4246,6 @@ export const resizeKubernetesPersistentVolumeClaim = < ResizeKubernetesPersistentVolumeClaimErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zResizeKubernetesPersistentVolumeClaimBody, - path: zResizeKubernetesPersistentVolumeClaimPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zResizeKubernetesPersistentVolumeClaimResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6289,17 +4274,7 @@ export const getAllKubernetesPersistentVolumes = < GetAllKubernetesPersistentVolumesErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetAllKubernetesPersistentVolumesPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetAllKubernetesPersistentVolumesResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6324,17 +4299,7 @@ export const getKubernetesPersistentVolume = < GetKubernetesPersistentVolumeErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesPersistentVolumePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesPersistentVolumeResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6359,16 +4324,6 @@ export const deleteKubernetesPersistentVolumes = < DeleteKubernetesPersistentVolumesErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zDeleteKubernetesPersistentVolumesBody, - path: zDeleteKubernetesPersistentVolumesPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zDeleteKubernetesPersistentVolumesResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6400,18 +4355,6 @@ export const updateKubernetesPersistentVolumeReclaimPolicy = < UpdateKubernetesPersistentVolumeReclaimPolicyErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zUpdateKubernetesPersistentVolumeReclaimPolicyBody, - path: zUpdateKubernetesPersistentVolumeReclaimPolicyPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zUpdateKubernetesPersistentVolumeReclaimPolicyResponse.parseAsync( - data - ), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6438,17 +4381,7 @@ export const getKubernetesRbacStatus = ( GetKubernetesRbacStatusErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesRbacStatusPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesRbacStatusResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6471,16 +4404,6 @@ export const deleteRoleBindings = ( DeleteRoleBindingsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zDeleteRoleBindingsBody, - path: zDeleteRoleBindingsPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zDeleteRoleBindingsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6507,17 +4430,7 @@ export const getKubernetesRoleBindings = ( GetKubernetesRoleBindingsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesRoleBindingsPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesRoleBindingsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6540,17 +4453,7 @@ export const getKubernetesRoles = ( GetKubernetesRolesErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesRolesPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesRolesResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6573,16 +4476,6 @@ export const deleteRoles = ( DeleteRolesErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zDeleteRolesBody, - path: zDeleteRolesPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zDeleteRolesResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6609,17 +4502,7 @@ export const getKubernetesSecrets = ( GetKubernetesSecretsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesSecretsPath, - query: zGetKubernetesSecretsQuery, - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesSecretsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6642,17 +4525,7 @@ export const getKubernetesSecretsCount = ( GetKubernetesSecretsCountErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesSecretsCountPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesSecretsCountResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6675,16 +4548,6 @@ export const deleteServiceAccounts = ( DeleteServiceAccountsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zDeleteServiceAccountsBody, - path: zDeleteServiceAccountsPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zDeleteServiceAccountsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6713,17 +4576,7 @@ export const getKubernetesServiceAccounts = < GetKubernetesServiceAccountsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesServiceAccountsPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesServiceAccountsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6746,17 +4599,7 @@ export const getKubernetesServices = ( GetKubernetesServicesErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesServicesPath, - query: zGetKubernetesServicesQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesServicesResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6781,17 +4624,7 @@ export const getAllKubernetesServicesCount = < GetAllKubernetesServicesCountErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetAllKubernetesServicesCountPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetAllKubernetesServicesCountResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6814,16 +4647,6 @@ export const deleteKubernetesServices = ( DeleteKubernetesServicesErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zDeleteKubernetesServicesBody, - path: zDeleteKubernetesServicesPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zDeleteKubernetesServicesResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6852,17 +4675,7 @@ export const getAllKubernetesStorageClasses = < GetAllKubernetesStorageClassesErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetAllKubernetesStorageClassesPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetAllKubernetesStorageClassesResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6885,17 +4698,7 @@ export const getKubernetesStorageClass = ( GetKubernetesStorageClassErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesStorageClassPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesStorageClassResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6920,16 +4723,6 @@ export const setDefaultKubernetesStorageClass = < SetDefaultKubernetesStorageClassErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zSetDefaultKubernetesStorageClassPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zSetDefaultKubernetesStorageClassResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6954,16 +4747,6 @@ export const deleteKubernetesStorageClasses = < DeleteKubernetesStorageClassesErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zDeleteKubernetesStorageClassesBody, - path: zDeleteKubernetesStorageClassesPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zDeleteKubernetesStorageClassesResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -6992,17 +4775,7 @@ export const getKubernetesVersion = ( GetKubernetesVersionErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesVersionPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesVersionResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7025,17 +4798,7 @@ export const getAllKubernetesVolumes = ( GetAllKubernetesVolumesErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetAllKubernetesVolumesPath, - query: zGetAllKubernetesVolumesQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetAllKubernetesVolumesResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7058,17 +4821,7 @@ export const getKubernetesVolume = ( GetKubernetesVolumeErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetKubernetesVolumePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetKubernetesVolumeResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7093,17 +4846,7 @@ export const getAllKubernetesVolumesCount = < GetAllKubernetesVolumesCountErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zGetAllKubernetesVolumesCountPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetAllKubernetesVolumesCountResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7132,14 +4875,6 @@ export const getKubernetesConfig = ( excludeIds: { array: { explode: false } }, }, }, - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: zGetKubernetesConfigQuery.optional(), - }) - .parseAsync(data), responseType: 'json', security: [ { name: 'X-API-KEY', type: 'apiKey' }, @@ -7163,16 +4898,6 @@ export const ldapCheck = ( LdapCheckErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zLdapCheckBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zLdapCheckResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7194,16 +4919,7 @@ export const motd = ( options?: Options ) => (options?.client ?? client).get({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => await zMotdResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7228,17 +4944,7 @@ export const registryList = ( RegistryListErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zRegistryListResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7261,17 +4967,7 @@ export const registryCreate = ( RegistryCreateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zRegistryCreateBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zRegistryCreateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7298,16 +4994,6 @@ export const registryDelete = ( RegistryDeleteErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zRegistryDeletePath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zRegistryDeleteResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7330,17 +5016,7 @@ export const registryInspect = ( RegistryInspectErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zRegistryInspectPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zRegistryInspectResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7363,17 +5039,7 @@ export const registryUpdate = ( RegistryUpdateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zRegistryUpdateBody, - path: zRegistryUpdatePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zRegistryUpdateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7400,16 +5066,6 @@ export const registryConfigure = ( RegistryConfigureErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zRegistryConfigureBody, - path: zRegistryConfigurePath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zRegistryConfigureResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7436,17 +5092,7 @@ export const registryPing = ( RegistryPingErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zRegistryPingBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zRegistryPingResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7473,17 +5119,7 @@ export const resourceControlCreate = ( ResourceControlCreateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zResourceControlCreateBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zResourceControlCreateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7510,16 +5146,6 @@ export const resourceControlDelete = ( ResourceControlDeleteErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zResourceControlDeletePath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zResourceControlDeleteResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7542,17 +5168,7 @@ export const resourceControlUpdate = ( ResourceControlUpdateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zResourceControlUpdateBody, - path: zResourceControlUpdatePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zResourceControlUpdateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7579,15 +5195,6 @@ export const restore = ( RestoreErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zRestoreBody, - headers: zRestoreHeaders.optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), url: '/restore', ...options, headers: { @@ -7610,16 +5217,7 @@ export const roleList = ( RoleListErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => await zRoleListResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7642,17 +5240,7 @@ export const settingsInspect = ( SettingsInspectErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zSettingsInspectResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7675,17 +5263,7 @@ export const settingsUpdate = ( SettingsUpdateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zSettingsUpdateBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zSettingsUpdateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7712,17 +5290,7 @@ export const settingsPublic = ( SettingsPublicErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zSettingsPublicResponse.parseAsync(data), url: '/settings/public', ...options, }); @@ -7741,17 +5309,7 @@ export const sslInspect = ( SslInspectErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zSslInspectResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7774,16 +5332,6 @@ export const sslUpdate = ( SslUpdateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zSslUpdateBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zSslUpdateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7813,16 +5361,6 @@ export const stackList = ( StackListErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: zStackListQuery.optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zStackListResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7845,16 +5383,6 @@ export const stackDelete = ( StackDeleteErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zStackDeletePath, - query: zStackDeleteQuery, - }) - .parseAsync(data), - responseValidator: async (data) => - await zStackDeleteResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7877,17 +5405,7 @@ export const stackInspect = ( StackInspectErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zStackInspectPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zStackInspectResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7910,17 +5428,7 @@ export const stackUpdate = ( StackUpdateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zStackUpdateBody, - path: zStackUpdatePath, - query: zStackUpdateQuery, - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zStackUpdateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7946,17 +5454,7 @@ export const stackAssociate = ( StackAssociateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zStackAssociatePath, - query: zStackAssociateQuery, - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zStackAssociateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -7979,17 +5477,7 @@ export const stackFileInspect = ( StackFileInspectErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zStackFileInspectPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zStackFileInspectResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8012,17 +5500,7 @@ export const stackUpdateGit = ( StackUpdateGitErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zStackUpdateGitBody, - path: zStackUpdateGitPath, - query: zStackUpdateGitQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zStackUpdateGitResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8049,17 +5527,7 @@ export const stackGitRedeploy = ( StackGitRedeployErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zStackGitRedeployBody, - path: zStackGitRedeployPath, - query: zStackGitRedeployQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zStackGitRedeployResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8086,17 +5554,7 @@ export const stackMigrate = ( StackMigrateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zStackMigrateBody, - path: zStackMigratePath, - query: zStackMigrateQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zStackMigrateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8123,16 +5581,6 @@ export const stackStart = ( StackStartErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zStackStartPath, - query: zStackStartQuery, - }) - .parseAsync(data), - responseValidator: async (data) => - await zStackStartResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8155,16 +5603,6 @@ export const stackStop = ( StackStopErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zStackStopPath, - query: zStackStopQuery, - }) - .parseAsync(data), - responseValidator: async (data) => - await zStackStopResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8187,17 +5625,7 @@ export const stackCreateKubernetesGit = ( StackCreateKubernetesGitErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zStackCreateKubernetesGitBody, - path: z.never().optional(), - query: zStackCreateKubernetesGitQuery, - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zStackCreateKubernetesGitResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8224,17 +5652,7 @@ export const stackCreateKubernetesFile = ( StackCreateKubernetesFileErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zStackCreateKubernetesFileBody, - path: z.never().optional(), - query: zStackCreateKubernetesFileQuery, - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zStackCreateKubernetesFileResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8261,17 +5679,7 @@ export const stackCreateKubernetesUrl = ( StackCreateKubernetesUrlErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zStackCreateKubernetesUrlBody, - path: z.never().optional(), - query: zStackCreateKubernetesUrlQuery, - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zStackCreateKubernetesUrlResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8301,17 +5709,7 @@ export const stackCreateDockerStandaloneFile = < ThrowOnError >({ ...formDataBodySerializer, - requestValidator: async (data) => - await z - .object({ - body: zStackCreateDockerStandaloneFileBody, - path: z.never().optional(), - query: zStackCreateDockerStandaloneFileQuery, - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zStackCreateDockerStandaloneFileResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8340,17 +5738,7 @@ export const stackCreateDockerStandaloneRepository = < StackCreateDockerStandaloneRepositoryErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zStackCreateDockerStandaloneRepositoryBody, - path: z.never().optional(), - query: zStackCreateDockerStandaloneRepositoryQuery, - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zStackCreateDockerStandaloneRepositoryResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8379,17 +5767,7 @@ export const stackCreateDockerStandaloneString = < StackCreateDockerStandaloneStringErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zStackCreateDockerStandaloneStringBody, - path: z.never().optional(), - query: zStackCreateDockerStandaloneStringQuery, - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zStackCreateDockerStandaloneStringResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8417,17 +5795,7 @@ export const stackCreateDockerSwarmFile = ( ThrowOnError >({ ...formDataBodySerializer, - requestValidator: async (data) => - await z - .object({ - body: zStackCreateDockerSwarmFileBody.optional(), - path: z.never().optional(), - query: zStackCreateDockerSwarmFileQuery, - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zStackCreateDockerSwarmFileResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8456,17 +5824,7 @@ export const stackCreateDockerSwarmRepository = < StackCreateDockerSwarmRepositoryErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zStackCreateDockerSwarmRepositoryBody, - path: z.never().optional(), - query: zStackCreateDockerSwarmRepositoryQuery, - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zStackCreateDockerSwarmRepositoryResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8495,17 +5853,7 @@ export const stackCreateDockerSwarmString = < StackCreateDockerSwarmStringErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zStackCreateDockerSwarmStringBody, - path: z.never().optional(), - query: zStackCreateDockerSwarmStringQuery, - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zStackCreateDockerSwarmStringResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8534,16 +5882,6 @@ export const stackDeleteKubernetesByName = < StackDeleteKubernetesByNameErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zStackDeleteKubernetesByNamePath, - query: zStackDeleteKubernetesByNameQuery, - }) - .parseAsync(data), - responseValidator: async (data) => - await zStackDeleteKubernetesByNameResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8564,18 +5902,7 @@ export const webhookInvoke = ( WebhookInvokeResponses, WebhookInvokeErrors, ThrowOnError - >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zWebhookInvokePath, - query: z.never().optional(), - }) - .parseAsync(data), - url: '/stacks/webhooks/{webhookID}', - ...options, - }); + >({ url: '/stacks/webhooks/{webhookID}', ...options }); /** * Retrieve system info @@ -8590,17 +5917,7 @@ export const systemInfo = ( SystemInfoErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zSystemInfoResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8622,17 +5939,7 @@ export const systemNodesCount = ( SystemNodesCountErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zSystemNodesCountResponse2.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8652,17 +5959,7 @@ export const systemStatus = ( ) => (options?.client ?? client).get( { - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zSystemStatusResponse.parseAsync(data), url: '/system/status', ...options, } @@ -8682,17 +5979,7 @@ export const systemUpgrade = ( unknown, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zSystemUpgradeResponse.parseAsync(data), url: '/system/upgrade', ...options, }); @@ -8711,17 +5998,7 @@ export const systemVersion = ( unknown, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zSystemVersionResponse2.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8744,16 +6021,7 @@ export const tagList = ( TagListErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => await zTagListResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8776,17 +6044,7 @@ export const tagCreate = ( TagCreateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zTagCreateBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zTagCreateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8813,16 +6071,6 @@ export const tagDelete = ( TagDeleteErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zTagDeletePath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zTagDeleteResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8845,17 +6093,7 @@ export const teamMembershipList = ( TeamMembershipListErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zTeamMembershipListResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8878,17 +6116,7 @@ export const teamMembershipCreate = ( TeamMembershipCreateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zTeamMembershipCreateBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zTeamMembershipCreateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8915,16 +6143,6 @@ export const teamMembershipDelete = ( TeamMembershipDeleteErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zTeamMembershipDeletePath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zTeamMembershipDeleteResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8947,17 +6165,7 @@ export const teamMembershipUpdate = ( TeamMembershipUpdateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zTeamMembershipUpdateBody, - path: zTeamMembershipUpdatePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zTeamMembershipUpdateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -8984,16 +6192,7 @@ export const teamList = ( TeamListErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: zTeamListQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => await zTeamListResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9016,17 +6215,7 @@ export const teamCreate = ( TeamCreateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zTeamCreateBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zTeamCreateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9053,16 +6242,6 @@ export const teamDelete = ( TeamDeleteErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zTeamDeletePath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zTeamDeleteResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9085,17 +6264,7 @@ export const teamInspect = ( TeamInspectErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zTeamInspectPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zTeamInspectResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9118,17 +6287,7 @@ export const teamUpdate = ( TeamUpdateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zTeamUpdateBody, - path: zTeamUpdatePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zTeamUpdateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9155,17 +6314,7 @@ export const teamMemberships = ( TeamMembershipsErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zTeamMembershipsPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zTeamMembershipsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9188,17 +6337,7 @@ export const templateList = ( TemplateListErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zTemplateListResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9221,17 +6360,7 @@ export const templateFile = ( TemplateFileErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zTemplateFilePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zTemplateFileResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9253,17 +6382,7 @@ export const helmRepoSearch = ( HelmRepoSearchErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: zHelmRepoSearchQuery, - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zHelmRepoSearchResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9285,16 +6404,7 @@ export const helmShow = ( HelmShowErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zHelmShowPath, - query: zHelmShowQuery, - }) - .parseAsync(data), responseType: 'text', - responseValidator: async (data) => await zHelmShowResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9318,16 +6428,6 @@ export const uploadTls = ( ThrowOnError >({ ...formDataBodySerializer, - requestValidator: async (data) => - await z - .object({ - body: zUploadTlsBody, - path: zUploadTlsPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zUploadTlsResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9356,16 +6456,7 @@ export const userList = ( UserListErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: zUserListQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => await zUserListResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9389,17 +6480,7 @@ export const userCreate = ( UserCreateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zUserCreateBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zUserCreateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9426,16 +6507,6 @@ export const userDelete = ( UserDeleteErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zUserDeletePath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zUserDeleteResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9459,17 +6530,7 @@ export const userInspect = ( UserInspectErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zUserInspectPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zUserInspectResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9493,17 +6554,7 @@ export const userUpdate = ( UserUpdateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zUserUpdateBody, - path: zUserUpdatePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zUserUpdateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9533,17 +6584,7 @@ export const userEffectiveAccessInspect = ( UserEffectiveAccessInspectErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zUserEffectiveAccessInspectPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zUserEffectiveAccessInspectResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9566,17 +6607,7 @@ export const helmUserRepositoriesList = ( HelmUserRepositoriesListErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zHelmUserRepositoriesListPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zHelmUserRepositoriesListResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9599,17 +6630,7 @@ export const helmUserRepositoryCreate = ( HelmUserRepositoryCreateErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zHelmUserRepositoryCreateBody, - path: zHelmUserRepositoryCreatePath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zHelmUserRepositoryCreateResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9635,16 +6656,6 @@ export const helmUserRepositoryDelete = ( HelmUserRepositoryDeleteErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zHelmUserRepositoryDeletePath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zHelmUserRepositoryDeleteResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9667,17 +6678,7 @@ export const userMembershipsInspect = ( UserMembershipsInspectErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zUserMembershipsInspectPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zUserMembershipsInspectResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9700,16 +6701,6 @@ export const userUpdatePassword = ( UserUpdatePasswordErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zUserUpdatePasswordBody, - path: zUserUpdatePasswordPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zUserUpdatePasswordResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9737,17 +6728,7 @@ export const userGetApiKeys = ( UserGetApiKeysErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zUserGetApiKeysPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zUserGetApiKeysResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9772,17 +6753,7 @@ export const userGenerateApiKey = ( UserGenerateApiKeyErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zUserGenerateApiKeyBody, - path: zUserGenerateApiKeyPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zUserGenerateApiKeyResponse.parseAsync(data), security: [{ name: 'Authorization', type: 'apiKey' }], url: '/users/{id}/tokens', ...options, @@ -9807,16 +6778,6 @@ export const userRemoveApiKey = ( UserRemoveApiKeyErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zUserRemoveApiKeyPath, - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zUserRemoveApiKeyResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9838,20 +6799,7 @@ export const userAdminCheck = ( UserAdminCheckResponses, UserAdminCheckErrors, ThrowOnError - >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), - responseValidator: async (data) => - await zUserAdminCheckResponse.parseAsync(data), - url: '/users/admin/check', - ...options, - }); + >({ url: '/users/admin/check', ...options }); /** * Initialize administrator account @@ -9867,18 +6815,7 @@ export const userAdminInit = ( UserAdminInitErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zUserAdminInitBody, - headers: zUserAdminInitHeaders.optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zUserAdminInitResponse.parseAsync(data), url: '/users/admin/init', ...options, headers: { @@ -9902,17 +6839,7 @@ export const currentUserInspect = ( CurrentUserInspectErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zCurrentUserInspectResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9934,17 +6861,7 @@ export const getWebhooks = ( GetWebhooksErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: zGetWebhooksQuery.optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zGetWebhooksResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -9966,17 +6883,7 @@ export const postWebhooks = ( PostWebhooksErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zPostWebhooksBody, - path: z.never().optional(), - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zPostWebhooksResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -10002,14 +6909,6 @@ export const deleteWebhooksById = ( DeleteWebhooksByIdErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zDeleteWebhooksByIdPath, - query: z.never().optional(), - }) - .parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -10031,18 +6930,7 @@ export const postWebhooksById = ( PostWebhooksByIdResponses, PostWebhooksByIdErrors, ThrowOnError - >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: zPostWebhooksByIdPath, - query: z.never().optional(), - }) - .parseAsync(data), - url: '/webhooks/{id}', - ...options, - }); + >({ url: '/webhooks/{id}', ...options }); /** * Update a webhook @@ -10057,17 +6945,7 @@ export const putWebhooksById = ( PutWebhooksByIdErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: zPutWebhooksByIdBody, - path: zPutWebhooksByIdPath, - query: z.never().optional(), - }) - .parseAsync(data), responseType: 'json', - responseValidator: async (data) => - await zPutWebhooksByIdResponse.parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -10096,14 +6974,6 @@ export const getWebsocketAttach = ( GetWebsocketAttachErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: zGetWebsocketAttachQuery, - }) - .parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -10127,14 +6997,6 @@ export const getWebsocketExec = ( GetWebsocketExecErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: zGetWebsocketExecQuery, - }) - .parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -10159,14 +7021,6 @@ export const getWebsocketKubernetesShell = < GetWebsocketKubernetesShellErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: zGetWebsocketKubernetesShellQuery, - }) - .parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, @@ -10189,14 +7043,6 @@ export const getWebsocketPod = ( GetWebsocketPodErrors, ThrowOnError >({ - requestValidator: async (data) => - await z - .object({ - body: z.never().optional(), - path: z.never().optional(), - query: zGetWebsocketPodQuery, - }) - .parseAsync(data), security: [ { name: 'X-API-KEY', type: 'apiKey' }, { name: 'Authorization', type: 'apiKey' }, diff --git a/openapi-ts.config.ts b/openapi-ts.config.ts index 2ff2e2aed9..7d8431ddfa 100644 --- a/openapi-ts.config.ts +++ b/openapi-ts.config.ts @@ -22,7 +22,7 @@ export default defineConfig({ }, { name: '@hey-api/sdk', - validator: true, + // validator: true, TODO revert in BE-13103 }, { name: '@hey-api/client-axios',