diff --git a/public/i18n/en/common.json b/public/i18n/en/common.json index aa9c8d6bb..37696af99 100644 --- a/public/i18n/en/common.json +++ b/public/i18n/en/common.json @@ -56,7 +56,7 @@ "TITLE_APPS": "Apps - {{role}}", "TITLE_DASHBOARD": "Dashboard - {{role}}", "TITLE_POLICIES": "Policies", - "TITLE_POLICY": "Policy {{policyId}}", + "TITLE_POLICY": "Policy {{policyName}}", "TITLE_SECRET": "Secret {{secretId}} - {{role}}", "TITLE_SEALEDSECRET": "Sealed Secret {{secretId}} - {{role}}", "TITLE_NETPOL": "Network Policy {{secretId}} - {{role}}", diff --git a/src/App.tsx b/src/App.tsx index aaa925281..3c72d96c8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -124,7 +124,12 @@ function App() { - + - + diff --git a/src/components/Policy.tsx b/src/components/Policy.tsx index e9356e800..fe1fbe95e 100644 --- a/src/components/Policy.tsx +++ b/src/components/Policy.tsx @@ -7,8 +7,8 @@ import { GetPolicyApiResponse, GetSessionApiResponse } from 'redux/otomiApi' import { Box, Button } from '@mui/material' import Form from './rjsf/Form' -export const getPolicySchema = (policyId): any => { - const schema = cloneDeep(getSpec().components.schemas.Policies.properties[policyId]) +export const getPolicySchema = (policyName): any => { + const schema = cloneDeep(getSpec().components.schemas.Policies.properties[policyName]) return schema } @@ -23,10 +23,10 @@ interface Props extends CrudProps { policy?: GetPolicyApiResponse onSubmit: (formData: any) => void editPolicies: boolean - policyId?: string + policyName?: string } -export default function ({ policy, teamId, onSubmit, editPolicies, policyId, ...other }: Props): React.ReactElement { +export default function ({ policy, teamId, onSubmit, editPolicies, policyName, ...other }: Props): React.ReactElement { const { user } = useSession() const [data, setData] = useState(policy) useEffect(() => { @@ -34,14 +34,14 @@ export default function ({ policy, teamId, onSubmit, editPolicies, policyId, ... }, [policy]) // END HOOKS const formData = cloneDeep(data) - const schema = getPolicySchema(policyId) + const schema = getPolicySchema(policyName) const uiSchema = getPolicyUiSchema(user, teamId) return (
): React.ReactElement { const { user: { isPlatformAdmin }, } = useAuthzSession(teamId) const [update, { isLoading: isLoadingUpdate, isSuccess: isSuccessUpdate }] = useEditPolicyMutation() - const { data, isLoading, isFetching, isError, refetch } = useGetPolicyQuery({ teamId, policyId }, { skip: !policyId }) + const { data, isLoading, isFetching, isError, refetch } = useGetPolicyQuery( + { teamId, policyName }, + { skip: !policyName }, + ) const { data: teams, isLoading: isLoadingTeams, @@ -45,7 +48,7 @@ export default function ({ if (!mutating && isSuccessUpdate) return const handleSubmit = (formData) => { if (!editPolicies) return - if (policyId) update({ teamId, policyId, body: omit(formData, ['id', 'name']) as GetPolicyApiResponse }) + if (policyName) update({ teamId, policyName, body: omit(formData, ['id', 'name']) as GetPolicyApiResponse }) } const comp = teams && !isError && ( ) - return + return } diff --git a/src/redux/emptyApi.ts b/src/redux/emptyApi.ts index 17f2d2786..51a88e1f2 100644 --- a/src/redux/emptyApi.ts +++ b/src/redux/emptyApi.ts @@ -7,7 +7,7 @@ import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react' const headers = [] const baseQuery = fetchBaseQuery({ - baseUrl: '/api/v1/', + baseUrl: '/api/', prepareHeaders: (h) => { headers.map(([idx, val]: [string, string]) => h.set(idx, val)) return h diff --git a/src/redux/otomiApi.ts b/src/redux/otomiApi.ts index aafd0a04d..37961053b 100644 --- a/src/redux/otomiApi.ts +++ b/src/redux/otomiApi.ts @@ -3,7 +3,7 @@ const injectedRtkApi = api.injectEndpoints({ endpoints: (build) => ({ getValues: build.query({ query: (queryArg) => ({ - url: `/otomi/values`, + url: `/v1/otomi/values`, params: { filesOnly: queryArg.filesOnly, excludeSecrets: queryArg.excludeSecrets, @@ -11,321 +11,522 @@ const injectedRtkApi = api.injectEndpoints({ }, }), }), - getAllServices: build.query({ - query: () => ({ url: `/services` }), - }), getTeams: build.query({ - query: () => ({ url: `/teams` }), + query: () => ({ url: `/v1/teams` }), }), createTeam: build.mutation({ - query: (queryArg) => ({ url: `/teams`, method: 'POST', body: queryArg.body }), + query: (queryArg) => ({ url: `/v1/teams`, method: 'POST', body: queryArg.body }), }), getTeam: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}` }), }), editTeam: build.mutation({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}`, method: 'PUT', body: queryArg.body }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}`, method: 'PUT', body: queryArg.body }), }), deleteTeam: build.mutation({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}`, method: 'DELETE' }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}`, method: 'DELETE' }), + }), + getAllServices: build.query({ + query: () => ({ url: `/v1/services` }), }), getTeamServices: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/services` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/services` }), }), createService: build.mutation({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/services`, method: 'POST', body: queryArg.body }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/services`, method: 'POST', body: queryArg.body }), }), getTeamK8SServices: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/kubernetes/services` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/kubernetes/services` }), }), getService: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/services/${queryArg.serviceName}` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/services/${queryArg.serviceName}` }), }), editService: build.mutation({ query: (queryArg) => ({ - url: `/teams/${queryArg.teamId}/services/${queryArg.serviceName}`, + url: `/v1/teams/${queryArg.teamId}/services/${queryArg.serviceName}`, method: 'PUT', body: queryArg.body, }), }), deleteService: build.mutation({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/services/${queryArg.serviceName}`, method: 'DELETE' }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/services/${queryArg.serviceName}`, method: 'DELETE' }), + }), + getAllAplServices: build.query({ + query: () => ({ url: `/v2/services` }), + }), + getTeamAplServices: build.query({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/services` }), + }), + createAplService: build.mutation({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/services`, method: 'POST', body: queryArg.body }), + }), + getAplService: build.query({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/services/${queryArg.serviceName}` }), + }), + editAplService: build.mutation({ + query: (queryArg) => ({ + url: `/v2/teams/${queryArg.teamId}/services/${queryArg.serviceName}`, + method: 'PUT', + body: queryArg.body, + }), + }), + deleteAplService: build.mutation({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/services/${queryArg.serviceName}`, method: 'DELETE' }), }), getAllSealedSecrets: build.query({ - query: () => ({ url: `/sealedsecrets` }), + query: () => ({ url: `/v1/sealedsecrets` }), }), downloadSealedSecretKeys: build.query({ - query: () => ({ url: `/sealedsecretskeys` }), + query: () => ({ url: `/v1/sealedsecretskeys` }), }), getSecretsFromK8S: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/k8sSecrets` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/k8sSecrets` }), }), getSealedSecrets: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/sealedsecrets` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/sealedsecrets` }), }), createSealedSecret: build.mutation({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/sealedsecrets`, method: 'POST', body: queryArg.body }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/sealedsecrets`, method: 'POST', body: queryArg.body }), }), getSealedSecret: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/sealedsecrets/${queryArg.sealedSecretName}` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/sealedsecrets/${queryArg.sealedSecretName}` }), }), editSealedSecret: build.mutation({ query: (queryArg) => ({ - url: `/teams/${queryArg.teamId}/sealedsecrets/${queryArg.sealedSecretName}`, + url: `/v1/teams/${queryArg.teamId}/sealedsecrets/${queryArg.sealedSecretName}`, method: 'PUT', body: queryArg.body, }), }), deleteSealedSecret: build.mutation({ query: (queryArg) => ({ - url: `/teams/${queryArg.teamId}/sealedsecrets/${queryArg.sealedSecretName}`, + url: `/v1/teams/${queryArg.teamId}/sealedsecrets/${queryArg.sealedSecretName}`, + method: 'DELETE', + }), + }), + getAllAplSecrets: build.query({ + query: () => ({ url: `/v2/sealedsecrets` }), + }), + getAplSealedSecrets: build.query({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/sealedsecrets` }), + }), + createAplSealedSecret: build.mutation({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/sealedsecrets`, method: 'POST', body: queryArg.body }), + }), + getAplSealedSecret: build.query({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/sealedsecrets/${queryArg.sealedSecretName}` }), + }), + editAplSealedSecret: build.mutation({ + query: (queryArg) => ({ + url: `/v2/teams/${queryArg.teamId}/sealedsecrets/${queryArg.sealedSecretName}`, + method: 'PUT', + body: queryArg.body, + }), + }), + deleteAplSealedSecret: build.mutation({ + query: (queryArg) => ({ + url: `/v2/teams/${queryArg.teamId}/sealedsecrets/${queryArg.sealedSecretName}`, method: 'DELETE', }), }), getAllNetpols: build.query({ - query: () => ({ url: `/netpols` }), + query: () => ({ url: `/v1/netpols` }), }), getTeamNetpols: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/netpols` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/netpols` }), }), createNetpol: build.mutation({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/netpols`, method: 'POST', body: queryArg.body }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/netpols`, method: 'POST', body: queryArg.body }), }), getNetpol: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/netpols/${queryArg.netpolName}` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/netpols/${queryArg.netpolName}` }), }), editNetpol: build.mutation({ query: (queryArg) => ({ - url: `/teams/${queryArg.teamId}/netpols/${queryArg.netpolName}`, + url: `/v1/teams/${queryArg.teamId}/netpols/${queryArg.netpolName}`, method: 'PUT', body: queryArg.body, }), }), deleteNetpol: build.mutation({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/netpols/${queryArg.netpolName}`, method: 'DELETE' }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/netpols/${queryArg.netpolName}`, method: 'DELETE' }), + }), + getAllAplNetpols: build.query({ + query: () => ({ url: `/v2/netpols` }), + }), + getTeamAplNetpols: build.query({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/netpols` }), + }), + createAplNetpol: build.mutation({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/netpols`, method: 'POST', body: queryArg.body }), + }), + getAplNetpol: build.query({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/netpols/${queryArg.netpolName}` }), + }), + editAplNetpol: build.mutation({ + query: (queryArg) => ({ + url: `/v2/teams/${queryArg.teamId}/netpols/${queryArg.netpolName}`, + method: 'PUT', + body: queryArg.body, + }), + }), + deleteAplNetpol: build.mutation({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/netpols/${queryArg.netpolName}`, method: 'DELETE' }), }), getAllBackups: build.query({ - query: () => ({ url: `/backups` }), + query: () => ({ url: `/v1/backups` }), }), getTeamBackups: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/backups` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/backups` }), }), createBackup: build.mutation({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/backups`, method: 'POST', body: queryArg.body }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/backups`, method: 'POST', body: queryArg.body }), }), deleteBackup: build.mutation({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/backups/${queryArg.backupName}`, method: 'DELETE' }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/backups/${queryArg.backupName}`, method: 'DELETE' }), }), getBackup: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/backups/${queryArg.backupName}` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/backups/${queryArg.backupName}` }), }), editBackup: build.mutation({ query: (queryArg) => ({ - url: `/teams/${queryArg.teamId}/backups/${queryArg.backupName}`, + url: `/v1/teams/${queryArg.teamId}/backups/${queryArg.backupName}`, + method: 'PUT', + body: queryArg.body, + }), + }), + getAllAplBackups: build.query({ + query: () => ({ url: `/v2/backups` }), + }), + getTeamAplBackups: build.query({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/backups` }), + }), + createAplBackup: build.mutation({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/backups`, method: 'POST', body: queryArg.body }), + }), + deleteAplBackup: build.mutation({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/backups/${queryArg.backupName}`, method: 'DELETE' }), + }), + getAplBackup: build.query({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/backups/${queryArg.backupName}` }), + }), + editAplBackup: build.mutation({ + query: (queryArg) => ({ + url: `/v2/teams/${queryArg.teamId}/backups/${queryArg.backupName}`, method: 'PUT', body: queryArg.body, }), }), getDashboard: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/dashboard` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/dashboard` }), }), getAllBuilds: build.query({ - query: () => ({ url: `/builds` }), + query: () => ({ url: `/v1/builds` }), }), getTeamBuilds: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/builds` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/builds` }), }), createBuild: build.mutation({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/builds`, method: 'POST', body: queryArg.body }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/builds`, method: 'POST', body: queryArg.body }), }), deleteBuild: build.mutation({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/builds/${queryArg.buildName}`, method: 'DELETE' }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/builds/${queryArg.buildName}`, method: 'DELETE' }), }), getBuild: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/builds/${queryArg.buildName}` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/builds/${queryArg.buildName}` }), }), editBuild: build.mutation({ query: (queryArg) => ({ - url: `/teams/${queryArg.teamId}/builds/${queryArg.buildName}`, + url: `/v1/teams/${queryArg.teamId}/builds/${queryArg.buildName}`, + method: 'PUT', + body: queryArg.body, + }), + }), + getAllAplBuilds: build.query({ + query: () => ({ url: `/v2/builds` }), + }), + getTeamAplBuilds: build.query({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/builds` }), + }), + createAplBuild: build.mutation({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/builds`, method: 'POST', body: queryArg.body }), + }), + deleteAplBuild: build.mutation({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/builds/${queryArg.buildName}`, method: 'DELETE' }), + }), + getAplBuild: build.query({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/builds/${queryArg.buildName}` }), + }), + editAplBuild: build.mutation({ + query: (queryArg) => ({ + url: `/v2/teams/${queryArg.teamId}/builds/${queryArg.buildName}`, method: 'PUT', body: queryArg.body, }), }), getAllPolicies: build.query({ - query: () => ({ url: `/policies` }), + query: () => ({ url: `/v1/policies` }), }), getTeamPolicies: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/policies` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/policies` }), }), getPolicy: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/policies/${queryArg.policyId}` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/policies/${queryArg.policyName}` }), }), editPolicy: build.mutation({ query: (queryArg) => ({ - url: `/teams/${queryArg.teamId}/policies/${queryArg.policyId}`, + url: `/v1/teams/${queryArg.teamId}/policies/${queryArg.policyName}`, + method: 'PUT', + body: queryArg.body, + }), + }), + getAllAplPolicies: build.query({ + query: () => ({ url: `/v2/policies` }), + }), + getTeamAplPolicies: build.query({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/policies` }), + }), + getAplPolicy: build.query({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/policies/${queryArg.policyName}` }), + }), + editAplPolicy: build.mutation({ + query: (queryArg) => ({ + url: `/v2/teams/${queryArg.teamId}/policies/${queryArg.policyName}`, method: 'PUT', body: queryArg.body, }), }), getK8SVersion: build.query({ - query: () => ({ url: `/k8sVersion` }), + query: () => ({ url: `/v1/k8sVersion` }), }), connectCloudtty: build.mutation({ - query: (queryArg) => ({ url: `/cloudtty`, method: 'POST', body: queryArg.body }), + query: (queryArg) => ({ url: `/v1/cloudtty`, method: 'POST', body: queryArg.body }), }), deleteCloudtty: build.mutation({ - query: (queryArg) => ({ url: `/cloudtty`, method: 'DELETE', body: queryArg.body }), + query: (queryArg) => ({ url: `/v1/cloudtty`, method: 'DELETE', body: queryArg.body }), }), getAllUsers: build.query({ - query: () => ({ url: `/users` }), + query: () => ({ url: `/v1/users` }), }), createUser: build.mutation({ - query: (queryArg) => ({ url: `/users`, method: 'POST', body: queryArg.body }), + query: (queryArg) => ({ url: `/v1/users`, method: 'POST', body: queryArg.body }), }), getUser: build.query({ - query: (queryArg) => ({ url: `/users/${queryArg.userId}` }), + query: (queryArg) => ({ url: `/v1/users/${queryArg.userId}` }), }), editUser: build.mutation({ - query: (queryArg) => ({ url: `/users/${queryArg.userId}`, method: 'PUT', body: queryArg.body }), + query: (queryArg) => ({ url: `/v1/users/${queryArg.userId}`, method: 'PUT', body: queryArg.body }), }), deleteUser: build.mutation({ - query: (queryArg) => ({ url: `/users/${queryArg.userId}`, method: 'DELETE' }), + query: (queryArg) => ({ url: `/v1/users/${queryArg.userId}`, method: 'DELETE' }), }), editTeamUsers: build.mutation({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/users`, method: 'PUT', body: queryArg.body }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/users`, method: 'PUT', body: queryArg.body }), }), getAllProjects: build.query({ - query: () => ({ url: `/projects` }), + query: () => ({ url: `/v1/projects` }), }), getTeamProjects: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/projects` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/projects` }), }), createProject: build.mutation({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/projects`, method: 'POST', body: queryArg.body }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/projects`, method: 'POST', body: queryArg.body }), }), deleteProject: build.mutation({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/projects/${queryArg.projectName}`, method: 'DELETE' }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/projects/${queryArg.projectName}`, method: 'DELETE' }), }), getProject: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/projects/${queryArg.projectName}` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/projects/${queryArg.projectName}` }), }), editProject: build.mutation({ query: (queryArg) => ({ - url: `/teams/${queryArg.teamId}/projects/${queryArg.projectName}`, + url: `/v1/teams/${queryArg.teamId}/projects/${queryArg.projectName}`, method: 'PUT', body: queryArg.body, }), }), + getAllAplProjects: build.query({ + query: () => ({ url: `/v2/projects` }), + }), + getTeamAplProjects: build.query({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/projects` }), + }), + createAplProject: build.mutation({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/projects`, method: 'POST', body: queryArg.body }), + }), + deleteAplProject: build.mutation({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/projects/${queryArg.projectName}`, method: 'DELETE' }), + }), + getAplProject: build.query({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/projects/${queryArg.projectName}` }), + }), getAllCodeRepos: build.query({ - query: () => ({ url: `/coderepos` }), + query: () => ({ url: `/v1/coderepos` }), }), getTeamCodeRepos: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/coderepos` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/coderepos` }), }), createCodeRepo: build.mutation({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/coderepos`, method: 'POST', body: queryArg.body }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/coderepos`, method: 'POST', body: queryArg.body }), }), getCodeRepo: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/coderepos/${queryArg.codeRepositoryName}` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/coderepos/${queryArg.codeRepositoryName}` }), }), editCodeRepo: build.mutation({ query: (queryArg) => ({ - url: `/teams/${queryArg.teamId}/coderepos/${queryArg.codeRepositoryName}`, + url: `/v1/teams/${queryArg.teamId}/coderepos/${queryArg.codeRepositoryName}`, method: 'PUT', body: queryArg.body, }), }), deleteCodeRepo: build.mutation({ query: (queryArg) => ({ - url: `/teams/${queryArg.teamId}/coderepos/${queryArg.codeRepositoryName}`, + url: `/v1/teams/${queryArg.teamId}/coderepos/${queryArg.codeRepositoryName}`, + method: 'DELETE', + }), + }), + getAllAplCodeRepos: build.query({ + query: () => ({ url: `/v2/coderepos` }), + }), + getTeamAplCodeRepos: build.query({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/coderepos` }), + }), + createAplCodeRepo: build.mutation({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/coderepos`, method: 'POST', body: queryArg.body }), + }), + getAplCodeRepo: build.query({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/coderepos/${queryArg.codeRepositoryName}` }), + }), + editAplCodeRepo: build.mutation({ + query: (queryArg) => ({ + url: `/v2/teams/${queryArg.teamId}/coderepos/${queryArg.codeRepositoryName}`, + method: 'PUT', + body: queryArg.body, + }), + }), + deleteAplCodeRepo: build.mutation({ + query: (queryArg) => ({ + url: `/v2/teams/${queryArg.teamId}/coderepos/${queryArg.codeRepositoryName}`, method: 'DELETE', }), }), getAllWorkloads: build.query({ - query: () => ({ url: `/workloads` }), + query: () => ({ url: `/v1/workloads` }), }), workloadCatalog: build.mutation({ - query: (queryArg) => ({ url: `/workloadCatalog`, method: 'POST', body: queryArg.body }), + query: (queryArg) => ({ url: `/v1/workloadCatalog`, method: 'POST', body: queryArg.body }), }), getHelmChartContent: build.query({ - query: (queryArg) => ({ url: `/helmChartContent`, params: { url: queryArg.url } }), + query: (queryArg) => ({ url: `/v1/helmChartContent`, params: { url: queryArg.url } }), }), createWorkloadCatalog: build.mutation({ - query: (queryArg) => ({ url: `/createWorkloadCatalog`, method: 'POST', body: queryArg.body }), + query: (queryArg) => ({ url: `/v1/createWorkloadCatalog`, method: 'POST', body: queryArg.body }), }), getTeamWorkloads: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/workloads` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/workloads` }), }), createWorkload: build.mutation({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/workloads`, method: 'POST', body: queryArg.body }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/workloads`, method: 'POST', body: queryArg.body }), }), deleteWorkload: build.mutation({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/workloads/${queryArg.workloadName}`, method: 'DELETE' }), + query: (queryArg) => ({ + url: `/v1/teams/${queryArg.teamId}/workloads/${queryArg.workloadName}`, + method: 'DELETE', + }), }), getWorkload: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/workloads/${queryArg.workloadName}` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/workloads/${queryArg.workloadName}` }), }), editWorkload: build.mutation({ query: (queryArg) => ({ - url: `/teams/${queryArg.teamId}/workloads/${queryArg.workloadName}`, + url: `/v1/teams/${queryArg.teamId}/workloads/${queryArg.workloadName}`, method: 'PUT', body: queryArg.body, }), }), getWorkloadValues: build.query({ - query: (queryArg) => ({ url: `/teams/${queryArg.teamId}/workloads/${queryArg.workloadName}/values` }), + query: (queryArg) => ({ url: `/v1/teams/${queryArg.teamId}/workloads/${queryArg.workloadName}/values` }), }), editWorkloadValues: build.mutation({ query: (queryArg) => ({ - url: `/teams/${queryArg.teamId}/workloads/${queryArg.workloadName}/values`, + url: `/v1/teams/${queryArg.teamId}/workloads/${queryArg.workloadName}/values`, + method: 'PUT', + body: queryArg.body, + }), + }), + getAllAplWorkloads: build.query({ + query: () => ({ url: `/v2/workloads` }), + }), + getTeamAplWorkloads: build.query({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/workloads` }), + }), + createAplWorkload: build.mutation({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/workloads`, method: 'POST', body: queryArg.body }), + }), + deleteAplWorkload: build.mutation({ + query: (queryArg) => ({ + url: `/v2/teams/${queryArg.teamId}/workloads/${queryArg.workloadName}`, + method: 'DELETE', + }), + }), + getAplWorkload: build.query({ + query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/workloads/${queryArg.workloadName}` }), + }), + editAplWorkload: build.mutation({ + query: (queryArg) => ({ + url: `/v2/teams/${queryArg.teamId}/workloads/${queryArg.workloadName}`, method: 'PUT', body: queryArg.body, }), }), downloadKubecfg: build.query({ - query: (queryArg) => ({ url: `/kubecfg/${queryArg.teamId}` }), + query: (queryArg) => ({ url: `/v1/kubecfg/${queryArg.teamId}` }), }), downloadDockerConfig: build.query({ - query: (queryArg) => ({ url: `/dockerconfig/${queryArg.teamId}` }), + query: (queryArg) => ({ url: `/v1/dockerconfig/${queryArg.teamId}` }), }), getSession: build.query({ - query: () => ({ url: `/session` }), + query: () => ({ url: `/v1/session` }), }), apiDocs: build.query({ - query: () => ({ url: `/apiDocs` }), + query: () => ({ url: `/v1/apiDocs` }), }), getSettingsInfo: build.query({ - query: () => ({ url: `/settingsInfo` }), + query: () => ({ url: `/v1/settingsInfo` }), }), getTestRepoConnect: build.query({ query: (queryArg) => ({ - url: `/testRepoConnect`, + url: `/v1/testRepoConnect`, params: { url: queryArg.url, teamId: queryArg.teamId, secret: queryArg.secret }, }), }), getInternalRepoUrls: build.query({ - query: (queryArg) => ({ url: `/internalRepoUrls`, params: { teamId: queryArg.teamId } }), + query: (queryArg) => ({ url: `/v1/internalRepoUrls`, params: { teamId: queryArg.teamId } }), }), createObjWizard: build.mutation({ - query: (queryArg) => ({ url: `/objwizard`, method: 'POST', body: queryArg.body }), + query: (queryArg) => ({ url: `/v1/objwizard`, method: 'POST', body: queryArg.body }), }), getSettings: build.query({ - query: (queryArg) => ({ url: `/settings`, params: { ids: queryArg.ids } }), + query: (queryArg) => ({ url: `/v1/settings`, params: { ids: queryArg.ids } }), }), editSettings: build.mutation({ - query: (queryArg) => ({ url: `/settings/${queryArg.settingId}`, method: 'PUT', body: queryArg.body }), + query: (queryArg) => ({ url: `/v1/settings/${queryArg.settingId}`, method: 'PUT', body: queryArg.body }), }), getApps: build.query({ - query: (queryArg) => ({ url: `/apps/${queryArg.teamId}`, params: { picks: queryArg.picks } }), + query: (queryArg) => ({ url: `/v1/apps/${queryArg.teamId}`, params: { picks: queryArg.picks } }), }), toggleApps: build.mutation({ - query: (queryArg) => ({ url: `/apps/${queryArg.teamId}`, method: 'PUT', body: queryArg.body }), + query: (queryArg) => ({ url: `/v1/apps/${queryArg.teamId}`, method: 'PUT', body: queryArg.body }), }), getApp: build.query({ - query: (queryArg) => ({ url: `/apps/${queryArg.teamId}/${queryArg.appId}` }), + query: (queryArg) => ({ url: `/v1/apps/${queryArg.teamId}/${queryArg.appId}` }), }), editApp: build.mutation({ - query: (queryArg) => ({ url: `/apps/${queryArg.teamId}/${queryArg.appId}`, method: 'PUT', body: queryArg.body }), + query: (queryArg) => ({ + url: `/v1/apps/${queryArg.teamId}/${queryArg.appId}`, + method: 'PUT', + body: queryArg.body, + }), }), }), overrideExisting: false, @@ -338,56 +539,6 @@ export type GetValuesApiArg = { excludeSecrets?: 'true' | 'false' withWorkloadValues?: 'true' | 'false' } -export type GetAllServicesApiResponse = /** status 200 Successfully obtained all services */ { - id?: string - teamId?: string - name: string - namespace?: string - port?: number - ksvc?: { - predeployed?: boolean - } - trafficControl?: { - enabled?: boolean - weightV1?: number - weightV2?: number - } - ingress: - | ({ - type?: 'cluster' - } | null) - | ( - | ({ - ingressClassName?: string - tlsPass?: boolean - useDefaultHost?: boolean - subdomain: string - domain: string - useCname?: boolean - cname?: { - domain?: string - tlsSecretName?: string - } - paths?: string[] - forwardPath?: boolean - hasCert?: boolean - certSelect?: boolean - certName?: string - headers?: { - response?: { - set?: { - name: string - value: string - }[] - } - } - } & { - type?: 'public' - }) - | null - ) -}[] -export type GetAllServicesApiArg = void export type GetTeamsApiResponse = /** status 200 Successfully obtained teams collection */ { id?: string name: string @@ -641,7 +792,7 @@ export type GetTeamApiResponse = /** status 200 Successfully obtained team */ { } } export type GetTeamApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string } export type EditTeamApiResponse = /** status 200 Successfully edited team */ { @@ -707,7 +858,7 @@ export type EditTeamApiResponse = /** status 200 Successfully edited team */ { } } export type EditTeamApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Team object that contains updated values */ body: { @@ -775,9 +926,59 @@ export type EditTeamApiArg = { } export type DeleteTeamApiResponse = /** status 200 Successfully deleted a team */ undefined export type DeleteTeamApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string } +export type GetAllServicesApiResponse = /** status 200 Successfully obtained all services */ { + id?: string + teamId?: string + name: string + namespace?: string + port?: number + ksvc?: { + predeployed?: boolean + } + trafficControl?: { + enabled?: boolean + weightV1?: number + weightV2?: number + } + ingress: + | ({ + type?: 'cluster' + } | null) + | ( + | ({ + ingressClassName?: string + tlsPass?: boolean + useDefaultHost?: boolean + subdomain: string + domain: string + useCname?: boolean + cname?: { + domain?: string + tlsSecretName?: string + } + paths?: string[] + forwardPath?: boolean + hasCert?: boolean + certSelect?: boolean + certName?: string + headers?: { + response?: { + set?: { + name: string + value: string + }[] + } + } + } & { + type?: 'public' + }) + | null + ) +}[] +export type GetAllServicesApiArg = void export type GetTeamServicesApiResponse = /** status 200 Successfully obtained services */ { id?: string teamId?: string @@ -828,7 +1029,7 @@ export type GetTeamServicesApiResponse = /** status 200 Successfully obtained se ) }[] export type GetTeamServicesApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string } export type CreateServiceApiResponse = /** status 200 Successfully stored service configuration */ { @@ -881,7 +1082,7 @@ export type CreateServiceApiResponse = /** status 200 Successfully stored servic ) } export type CreateServiceApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Service object */ body: { @@ -940,7 +1141,7 @@ export type GetTeamK8SServicesApiResponse = /** status 200 Successfully obtained managedByKnative?: boolean }[] export type GetTeamK8SServicesApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string } export type GetServiceApiResponse = /** status 200 Successfully obtained service configuration */ { @@ -993,7 +1194,7 @@ export type GetServiceApiResponse = /** status 200 Successfully obtained service ) } export type GetServiceApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Name of the service */ serviceName: string @@ -1048,7 +1249,7 @@ export type EditServiceApiResponse = /** status 200 Successfully edited service ) } export type EditServiceApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Name of the service */ serviceName: string @@ -1105,56 +1306,467 @@ export type EditServiceApiArg = { } export type DeleteServiceApiResponse = /** status 200 Successfully deleted a service */ undefined export type DeleteServiceApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Name of the service */ serviceName: string } -export type GetAllSealedSecretsApiResponse = /** status 200 Successfully obtained all sealed secrets */ { - id?: string - name: string - namespace?: string - immutable?: boolean - type: - | 'kubernetes.io/opaque' - | 'kubernetes.io/service-account-token' - | 'kubernetes.io/dockercfg' - | 'kubernetes.io/dockerconfigjson' - | 'kubernetes.io/basic-auth' - | 'kubernetes.io/ssh-auth' - | 'kubernetes.io/tls' - encryptedData: { - key: string - value: string - }[] - metadata?: { - annotations?: { - key: string - value: string - }[] - finalizers?: string[] - labels?: { - key: string - value: string - }[] - } -}[] -export type GetAllSealedSecretsApiArg = void -export type DownloadSealedSecretKeysApiResponse = /** status 200 Successfully downloaded sealed secret keys */ Blob -export type DownloadSealedSecretKeysApiArg = void -export type GetSecretsFromK8SApiResponse = /** status 200 Successfully obtained secrets from k8s */ { - name?: string -}[] -export type GetSecretsFromK8SApiArg = { - /** ID of team to return */ - teamId: string -} -export type GetSealedSecretsApiResponse = /** status 200 Successfully obtained sealed secrets */ { - id?: string - name: string - namespace?: string - immutable?: boolean - type: +export type GetAllAplServicesApiResponse = /** status 200 Successfully obtained all services */ ({ + kind: 'AplTeamService' + spec: { + id?: string + teamId?: string + name?: string + namespace?: string + port?: number + ksvc?: { + predeployed?: boolean + } + trafficControl?: { + enabled?: boolean + weightV1?: number + weightV2?: number + } + } & ( + | { + type: 'cluster' + } + | { + type: 'public' + ingressClassName?: string + tlsPass?: boolean + ownHost?: boolean + domain?: string + useCname?: boolean + cname?: { + domain?: string + tlsSecretName?: string + } + paths?: string[] + forwardPath?: boolean + hasCert?: boolean + certName?: string + headers?: { + response?: { + set?: { + name: string + value: string + }[] + } + } + } + ) +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +})[] +export type GetAllAplServicesApiArg = void +export type GetTeamAplServicesApiResponse = /** status 200 Successfully obtained services */ ({ + kind: 'AplTeamService' + spec: { + id?: string + teamId?: string + name?: string + namespace?: string + port?: number + ksvc?: { + predeployed?: boolean + } + trafficControl?: { + enabled?: boolean + weightV1?: number + weightV2?: number + } + } & ( + | { + type: 'cluster' + } + | { + type: 'public' + ingressClassName?: string + tlsPass?: boolean + ownHost?: boolean + domain?: string + useCname?: boolean + cname?: { + domain?: string + tlsSecretName?: string + } + paths?: string[] + forwardPath?: boolean + hasCert?: boolean + certName?: string + headers?: { + response?: { + set?: { + name: string + value: string + }[] + } + } + } + ) +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +})[] +export type GetTeamAplServicesApiArg = { + /** ID of team */ + teamId: string +} +export type CreateAplServiceApiResponse = /** status 200 Successfully stored service configuration */ { + kind: 'AplTeamService' + spec: { + id?: string + teamId?: string + name?: string + namespace?: string + port?: number + ksvc?: { + predeployed?: boolean + } + trafficControl?: { + enabled?: boolean + weightV1?: number + weightV2?: number + } + } & ( + | { + type: 'cluster' + } + | { + type: 'public' + ingressClassName?: string + tlsPass?: boolean + ownHost?: boolean + domain?: string + useCname?: boolean + cname?: { + domain?: string + tlsSecretName?: string + } + paths?: string[] + forwardPath?: boolean + hasCert?: boolean + certName?: string + headers?: { + response?: { + set?: { + name: string + value: string + }[] + } + } + } + ) +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} +export type CreateAplServiceApiArg = { + /** ID of team */ + teamId: string + /** Service object */ + body: { + kind: 'AplTeamService' + spec: { + id?: string + teamId?: string + name?: string + namespace?: string + port?: number + ksvc?: { + predeployed?: boolean + } + trafficControl?: { + enabled?: boolean + weightV1?: number + weightV2?: number + } + } & ( + | { + type: 'cluster' + } + | { + type: 'public' + ingressClassName?: string + tlsPass?: boolean + ownHost?: boolean + domain?: string + useCname?: boolean + cname?: { + domain?: string + tlsSecretName?: string + } + paths?: string[] + forwardPath?: boolean + hasCert?: boolean + certName?: string + headers?: { + response?: { + set?: { + name: string + value: string + }[] + } + } + } + ) + } & { + metadata: { + name: string + } + } +} +export type GetAplServiceApiResponse = /** status 200 Successfully obtained service configuration */ { + kind: 'AplTeamService' + spec: { + id?: string + teamId?: string + name?: string + namespace?: string + port?: number + ksvc?: { + predeployed?: boolean + } + trafficControl?: { + enabled?: boolean + weightV1?: number + weightV2?: number + } + } & ( + | { + type: 'cluster' + } + | { + type: 'public' + ingressClassName?: string + tlsPass?: boolean + ownHost?: boolean + domain?: string + useCname?: boolean + cname?: { + domain?: string + tlsSecretName?: string + } + paths?: string[] + forwardPath?: boolean + hasCert?: boolean + certName?: string + headers?: { + response?: { + set?: { + name: string + value: string + }[] + } + } + } + ) +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} +export type GetAplServiceApiArg = { + /** ID of team */ + teamId: string + /** Name of the service */ + serviceName: string +} +export type EditAplServiceApiResponse = /** status 200 Successfully edited service */ { + kind: 'AplTeamService' + spec: { + id?: string + teamId?: string + name?: string + namespace?: string + port?: number + ksvc?: { + predeployed?: boolean + } + trafficControl?: { + enabled?: boolean + weightV1?: number + weightV2?: number + } + } & ( + | { + type: 'cluster' + } + | { + type: 'public' + ingressClassName?: string + tlsPass?: boolean + ownHost?: boolean + domain?: string + useCname?: boolean + cname?: { + domain?: string + tlsSecretName?: string + } + paths?: string[] + forwardPath?: boolean + hasCert?: boolean + certName?: string + headers?: { + response?: { + set?: { + name: string + value: string + }[] + } + } + } + ) +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} +export type EditAplServiceApiArg = { + /** ID of team */ + teamId: string + /** Name of the service */ + serviceName: string + /** Service object that contains updated values */ + body: { + kind: 'AplTeamService' + spec: { + id?: string + teamId?: string + name?: string + namespace?: string + port?: number + ksvc?: { + predeployed?: boolean + } + trafficControl?: { + enabled?: boolean + weightV1?: number + weightV2?: number + } + } & ( + | { + type: 'cluster' + } + | { + type: 'public' + ingressClassName?: string + tlsPass?: boolean + ownHost?: boolean + domain?: string + useCname?: boolean + cname?: { + domain?: string + tlsSecretName?: string + } + paths?: string[] + forwardPath?: boolean + hasCert?: boolean + certName?: string + headers?: { + response?: { + set?: { + name: string + value: string + }[] + } + } + } + ) + } & { + metadata: { + name: string + } + } +} +export type DeleteAplServiceApiResponse = /** status 200 Successfully deleted a service */ undefined +export type DeleteAplServiceApiArg = { + /** ID of team */ + teamId: string + /** Name of the service */ + serviceName: string +} +export type GetAllSealedSecretsApiResponse = /** status 200 Successfully obtained all sealed secrets */ { + id?: string + name: string + namespace?: string + immutable?: boolean + type: | 'kubernetes.io/opaque' | 'kubernetes.io/service-account-token' | 'kubernetes.io/dockercfg' @@ -1177,12 +1789,19 @@ export type GetSealedSecretsApiResponse = /** status 200 Successfully obtained s value: string }[] } + isDisabled?: boolean }[] -export type GetSealedSecretsApiArg = { - /** ID of team to return */ +export type GetAllSealedSecretsApiArg = void +export type DownloadSealedSecretKeysApiResponse = /** status 200 Successfully downloaded sealed secret keys */ Blob +export type DownloadSealedSecretKeysApiArg = void +export type GetSecretsFromK8SApiResponse = /** status 200 Successfully obtained secrets from k8s */ { + name?: string +}[] +export type GetSecretsFromK8SApiArg = { + /** ID of team */ teamId: string } -export type CreateSealedSecretApiResponse = /** status 200 Successfully stored sealed secret configuration */ { +export type GetSealedSecretsApiResponse = /** status 200 Successfully obtained sealed secrets */ { id?: string name: string namespace?: string @@ -1210,25 +1829,60 @@ export type CreateSealedSecretApiResponse = /** status 200 Successfully stored s value: string }[] } -} -export type CreateSealedSecretApiArg = { + isDisabled?: boolean +}[] +export type GetSealedSecretsApiArg = { /** ID of team */ teamId: string - /** SealedSecret object */ - body: { - id?: string - name: string - namespace?: string - immutable?: boolean - type: - | 'kubernetes.io/opaque' - | 'kubernetes.io/service-account-token' - | 'kubernetes.io/dockercfg' - | 'kubernetes.io/dockerconfigjson' - | 'kubernetes.io/basic-auth' - | 'kubernetes.io/ssh-auth' - | 'kubernetes.io/tls' - encryptedData: { +} +export type CreateSealedSecretApiResponse = /** status 200 Successfully stored sealed secret configuration */ { + id?: string + name: string + namespace?: string + immutable?: boolean + type: + | 'kubernetes.io/opaque' + | 'kubernetes.io/service-account-token' + | 'kubernetes.io/dockercfg' + | 'kubernetes.io/dockerconfigjson' + | 'kubernetes.io/basic-auth' + | 'kubernetes.io/ssh-auth' + | 'kubernetes.io/tls' + encryptedData: { + key: string + value: string + }[] + metadata?: { + annotations?: { + key: string + value: string + }[] + finalizers?: string[] + labels?: { + key: string + value: string + }[] + } + isDisabled?: boolean +} +export type CreateSealedSecretApiArg = { + /** ID of team */ + teamId: string + /** SealedSecret object */ + body: { + id?: string + name: string + namespace?: string + immutable?: boolean + type: + | 'kubernetes.io/opaque' + | 'kubernetes.io/service-account-token' + | 'kubernetes.io/dockercfg' + | 'kubernetes.io/dockerconfigjson' + | 'kubernetes.io/basic-auth' + | 'kubernetes.io/ssh-auth' + | 'kubernetes.io/tls' + encryptedData: { key: string value: string }[] @@ -1243,6 +1897,7 @@ export type CreateSealedSecretApiArg = { value: string }[] } + isDisabled?: boolean } } export type GetSealedSecretApiResponse = /** status 200 Successfully obtained sealed secret configuration */ { @@ -1273,9 +1928,10 @@ export type GetSealedSecretApiResponse = /** status 200 Successfully obtained se value: string }[] } + isDisabled?: boolean } export type GetSealedSecretApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Name of the sealed secret */ sealedSecretName: string @@ -1308,9 +1964,10 @@ export type EditSealedSecretApiResponse = /** status 200 Successfully edited a t value: string }[] } + isDisabled?: boolean } export type EditSealedSecretApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Name of the sealed secret */ sealedSecretName: string @@ -1343,11 +2000,350 @@ export type EditSealedSecretApiArg = { value: string }[] } + isDisabled?: boolean } } export type DeleteSealedSecretApiResponse = /** status 200 Successfully deleted a team sealed secret */ undefined export type DeleteSealedSecretApiArg = { - /** ID of team to return */ + /** ID of team */ + teamId: string + /** Name of the sealed secret */ + sealedSecretName: string +} +export type GetAllAplSecretsApiResponse = /** status 200 Successfully obtained all secrets */ ({ + kind: 'AplTeamSecret' + spec: { + namespace?: string + immutable?: boolean + type: + | 'kubernetes.io/opaque' + | 'kubernetes.io/service-account-token' + | 'kubernetes.io/dockercfg' + | 'kubernetes.io/dockerconfigjson' + | 'kubernetes.io/basic-auth' + | 'kubernetes.io/ssh-auth' + | 'kubernetes.io/tls' + encryptedData?: { + [key: string]: string + } + decryptedData?: { + [key: string]: string + } + metadata?: { + annotations?: { + [key: string]: string + } + labels?: { + [key: string]: string + } + finalizers?: string[] + } + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +})[] +export type GetAllAplSecretsApiArg = void +export type GetAplSealedSecretsApiResponse = /** status 200 Successfully obtained sealed secrets */ ({ + kind: 'AplTeamSecret' + spec: { + namespace?: string + immutable?: boolean + type: + | 'kubernetes.io/opaque' + | 'kubernetes.io/service-account-token' + | 'kubernetes.io/dockercfg' + | 'kubernetes.io/dockerconfigjson' + | 'kubernetes.io/basic-auth' + | 'kubernetes.io/ssh-auth' + | 'kubernetes.io/tls' + encryptedData?: { + [key: string]: string + } + decryptedData?: { + [key: string]: string + } + metadata?: { + annotations?: { + [key: string]: string + } + labels?: { + [key: string]: string + } + finalizers?: string[] + } + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +})[] +export type GetAplSealedSecretsApiArg = { + /** ID of team */ + teamId: string +} +export type CreateAplSealedSecretApiResponse = /** status 200 Successfully stored sealed secret configuration */ { + kind: 'AplTeamSecret' + spec: { + namespace?: string + immutable?: boolean + type: + | 'kubernetes.io/opaque' + | 'kubernetes.io/service-account-token' + | 'kubernetes.io/dockercfg' + | 'kubernetes.io/dockerconfigjson' + | 'kubernetes.io/basic-auth' + | 'kubernetes.io/ssh-auth' + | 'kubernetes.io/tls' + encryptedData?: { + [key: string]: string + } + decryptedData?: { + [key: string]: string + } + metadata?: { + annotations?: { + [key: string]: string + } + labels?: { + [key: string]: string + } + finalizers?: string[] + } + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} +export type CreateAplSealedSecretApiArg = { + /** ID of team */ + teamId: string + /** SealedSecret object */ + body: { + kind: 'AplTeamSecret' + spec: { + namespace?: string + immutable?: boolean + type: + | 'kubernetes.io/opaque' + | 'kubernetes.io/service-account-token' + | 'kubernetes.io/dockercfg' + | 'kubernetes.io/dockerconfigjson' + | 'kubernetes.io/basic-auth' + | 'kubernetes.io/ssh-auth' + | 'kubernetes.io/tls' + encryptedData?: { + [key: string]: string + } + decryptedData?: { + [key: string]: string + } + metadata?: { + annotations?: { + [key: string]: string + } + labels?: { + [key: string]: string + } + finalizers?: string[] + } + } + } & { + metadata: { + name: string + } + } +} +export type GetAplSealedSecretApiResponse = /** status 200 Successfully obtained sealed secret configuration */ { + kind: 'AplTeamSecret' + spec: { + namespace?: string + immutable?: boolean + type: + | 'kubernetes.io/opaque' + | 'kubernetes.io/service-account-token' + | 'kubernetes.io/dockercfg' + | 'kubernetes.io/dockerconfigjson' + | 'kubernetes.io/basic-auth' + | 'kubernetes.io/ssh-auth' + | 'kubernetes.io/tls' + encryptedData?: { + [key: string]: string + } + decryptedData?: { + [key: string]: string + } + metadata?: { + annotations?: { + [key: string]: string + } + labels?: { + [key: string]: string + } + finalizers?: string[] + } + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} +export type GetAplSealedSecretApiArg = { + /** ID of team */ + teamId: string + /** Name of the sealed secret */ + sealedSecretName: string +} +export type EditAplSealedSecretApiResponse = /** status 200 Successfully edited a team sealed secret */ { + kind: 'AplTeamSecret' + spec: { + namespace?: string + immutable?: boolean + type: + | 'kubernetes.io/opaque' + | 'kubernetes.io/service-account-token' + | 'kubernetes.io/dockercfg' + | 'kubernetes.io/dockerconfigjson' + | 'kubernetes.io/basic-auth' + | 'kubernetes.io/ssh-auth' + | 'kubernetes.io/tls' + encryptedData?: { + [key: string]: string + } + decryptedData?: { + [key: string]: string + } + metadata?: { + annotations?: { + [key: string]: string + } + labels?: { + [key: string]: string + } + finalizers?: string[] + } + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} +export type EditAplSealedSecretApiArg = { + /** ID of team */ + teamId: string + /** Name of the sealed secret */ + sealedSecretName: string + /** SealedSecret object that contains updated values */ + body: { + kind: 'AplTeamSecret' + spec: { + namespace?: string + immutable?: boolean + type: + | 'kubernetes.io/opaque' + | 'kubernetes.io/service-account-token' + | 'kubernetes.io/dockercfg' + | 'kubernetes.io/dockerconfigjson' + | 'kubernetes.io/basic-auth' + | 'kubernetes.io/ssh-auth' + | 'kubernetes.io/tls' + encryptedData?: { + [key: string]: string + } + decryptedData?: { + [key: string]: string + } + metadata?: { + annotations?: { + [key: string]: string + } + labels?: { + [key: string]: string + } + finalizers?: string[] + } + } + } & { + metadata: { + name: string + } + } +} +export type DeleteAplSealedSecretApiResponse = /** status 200 Successfully deleted a team sealed secret */ undefined +export type DeleteAplSealedSecretApiArg = { + /** ID of team */ teamId: string /** Name of the sealed secret */ sealedSecretName: string @@ -1404,7 +2400,7 @@ export type GetTeamNetpolsApiResponse = /** status 200 Successfully obtained tea } }[] export type GetTeamNetpolsApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string } export type CreateNetpolApiResponse = /** status 200 Successfully stored network policy configuration */ { @@ -1433,7 +2429,7 @@ export type CreateNetpolApiResponse = /** status 200 Successfully stored network } } export type CreateNetpolApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Network policy object */ body: { @@ -1488,7 +2484,7 @@ export type GetNetpolApiResponse = /** status 200 Successfully obtained network } } export type GetNetpolApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Name of the network policy */ netpolName: string @@ -1519,7 +2515,7 @@ export type EditNetpolApiResponse = /** status 200 Successfully edited a team ne } } export type EditNetpolApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Name of the network policy */ netpolName: string @@ -1552,38 +2548,362 @@ export type EditNetpolApiArg = { } export type DeleteNetpolApiResponse = /** status 200 Successfully deleted a team network policy */ undefined export type DeleteNetpolApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Name of the network policy */ netpolName: string } -export type GetAllBackupsApiResponse = /** status 200 Successfully obtained all backups configuration */ { - id?: string - teamId?: string - name: string - schedule: string - snapshotVolumes?: boolean - labelSelector?: { - name?: string - value?: string - }[] - ttl: string -}[] -export type GetAllBackupsApiArg = void -export type GetTeamBackupsApiResponse = /** status 200 Successfully obtained team backups configuration */ { - id?: string - teamId?: string - name: string - schedule: string - snapshotVolumes?: boolean - labelSelector?: { +export type GetAllAplNetpolsApiResponse = /** status 200 Successfully obtained all network policy configuration */ ({ + kind: 'AplTeamNetworkControl' + spec: { + id?: string + teamId?: string name?: string - value?: string - }[] - ttl: string + ruleType?: { + type?: 'ingress' | 'egress' + ingress?: { + toLabelName?: string + toLabelValue?: string + mode: 'AllowAll' | 'AllowOnly' + allow?: { + fromNamespace: string + fromLabelName?: string + fromLabelValue?: string + }[] + } + egress?: { + domain: string + ports?: { + number: number + protocol: 'HTTPS' | 'HTTP' | 'TCP' + }[] + } + } + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +})[] +export type GetAllAplNetpolsApiArg = void +export type GetTeamAplNetpolsApiResponse = /** status 200 Successfully obtained team network policy configuration */ ({ + kind: 'AplTeamNetworkControl' + spec: { + id?: string + teamId?: string + name?: string + ruleType?: { + type?: 'ingress' | 'egress' + ingress?: { + toLabelName?: string + toLabelValue?: string + mode: 'AllowAll' | 'AllowOnly' + allow?: { + fromNamespace: string + fromLabelName?: string + fromLabelValue?: string + }[] + } + egress?: { + domain: string + ports?: { + number: number + protocol: 'HTTPS' | 'HTTP' | 'TCP' + }[] + } + } + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +})[] +export type GetTeamAplNetpolsApiArg = { + /** ID of team */ + teamId: string +} +export type CreateAplNetpolApiResponse = /** status 200 Successfully stored network policy configuration */ { + kind: 'AplTeamNetworkControl' + spec: { + id?: string + teamId?: string + name?: string + ruleType?: { + type?: 'ingress' | 'egress' + ingress?: { + toLabelName?: string + toLabelValue?: string + mode: 'AllowAll' | 'AllowOnly' + allow?: { + fromNamespace: string + fromLabelName?: string + fromLabelValue?: string + }[] + } + egress?: { + domain: string + ports?: { + number: number + protocol: 'HTTPS' | 'HTTP' | 'TCP' + }[] + } + } + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} +export type CreateAplNetpolApiArg = { + /** ID of team */ + teamId: string + /** Network policy object */ + body: { + kind: 'AplTeamNetworkControl' + spec: { + id?: string + teamId?: string + name?: string + ruleType?: { + type?: 'ingress' | 'egress' + ingress?: { + toLabelName?: string + toLabelValue?: string + mode: 'AllowAll' | 'AllowOnly' + allow?: { + fromNamespace: string + fromLabelName?: string + fromLabelValue?: string + }[] + } + egress?: { + domain: string + ports?: { + number: number + protocol: 'HTTPS' | 'HTTP' | 'TCP' + }[] + } + } + } + } & { + metadata: { + name: string + } + } +} +export type GetAplNetpolApiResponse = /** status 200 Successfully obtained network policy configuration */ { + kind: 'AplTeamNetworkControl' + spec: { + id?: string + teamId?: string + name?: string + ruleType?: { + type?: 'ingress' | 'egress' + ingress?: { + toLabelName?: string + toLabelValue?: string + mode: 'AllowAll' | 'AllowOnly' + allow?: { + fromNamespace: string + fromLabelName?: string + fromLabelValue?: string + }[] + } + egress?: { + domain: string + ports?: { + number: number + protocol: 'HTTPS' | 'HTTP' | 'TCP' + }[] + } + } + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} +export type GetAplNetpolApiArg = { + /** ID of team */ + teamId: string + /** Name of the network policy */ + netpolName: string +} +export type EditAplNetpolApiResponse = /** status 200 Successfully edited a team network policy */ { + kind: 'AplTeamNetworkControl' + spec: { + id?: string + teamId?: string + name?: string + ruleType?: { + type?: 'ingress' | 'egress' + ingress?: { + toLabelName?: string + toLabelValue?: string + mode: 'AllowAll' | 'AllowOnly' + allow?: { + fromNamespace: string + fromLabelName?: string + fromLabelValue?: string + }[] + } + egress?: { + domain: string + ports?: { + number: number + protocol: 'HTTPS' | 'HTTP' | 'TCP' + }[] + } + } + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} +export type EditAplNetpolApiArg = { + /** ID of team */ + teamId: string + /** Name of the network policy */ + netpolName: string + /** Netwok policy object that contains updated values */ + body: { + kind: 'AplTeamNetworkControl' + spec: { + id?: string + teamId?: string + name?: string + ruleType?: { + type?: 'ingress' | 'egress' + ingress?: { + toLabelName?: string + toLabelValue?: string + mode: 'AllowAll' | 'AllowOnly' + allow?: { + fromNamespace: string + fromLabelName?: string + fromLabelValue?: string + }[] + } + egress?: { + domain: string + ports?: { + number: number + protocol: 'HTTPS' | 'HTTP' | 'TCP' + }[] + } + } + } + } & { + metadata: { + name: string + } + } +} +export type DeleteAplNetpolApiResponse = /** status 200 Successfully deleted a team network policy */ undefined +export type DeleteAplNetpolApiArg = { + /** ID of team */ + teamId: string + /** Name of the network policy */ + netpolName: string +} +export type GetAllBackupsApiResponse = /** status 200 Successfully obtained all backups configuration */ { + id?: string + teamId?: string + name: string + schedule: string + snapshotVolumes?: boolean + labelSelector?: { + name?: string + value?: string + }[] + ttl: string +}[] +export type GetAllBackupsApiArg = void +export type GetTeamBackupsApiResponse = /** status 200 Successfully obtained team backups configuration */ { + id?: string + teamId?: string + name: string + schedule: string + snapshotVolumes?: boolean + labelSelector?: { + name?: string + value?: string + }[] + ttl: string }[] export type GetTeamBackupsApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string } export type CreateBackupApiResponse = /** status 200 Successfully stored backup configuration */ { @@ -1599,7 +2919,7 @@ export type CreateBackupApiResponse = /** status 200 Successfully stored backup ttl: string } export type CreateBackupApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Backup object */ body: { @@ -1617,7 +2937,7 @@ export type CreateBackupApiArg = { } export type DeleteBackupApiResponse = /** status 200 Successfully deleted a backup */ undefined export type DeleteBackupApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Name of the backup */ backupName: string @@ -1635,7 +2955,7 @@ export type GetBackupApiResponse = /** status 200 Successfully obtained backup c ttl: string } export type GetBackupApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Name of the backup */ backupName: string @@ -1653,7 +2973,7 @@ export type EditBackupApiResponse = /** status 200 Successfully edited a team ba ttl: string } export type EditBackupApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Name of the backup */ backupName: string @@ -1671,40 +2991,273 @@ export type EditBackupApiArg = { ttl: string } } -export type GetDashboardApiResponse = /** status 200 Successfully obtained dashboard inventory data */ object -export type GetDashboardApiArg = { - /** ID of team to return */ - teamId: string -} -export type GetAllBuildsApiResponse = /** status 200 Successfully obtained all builds configuration */ { - id?: string - teamId?: string - name: string - tag?: string - mode?: - | { - docker: { - repoUrl: string - path?: string - revision?: string - envVars?: { - name: string - value: string - }[] - } - type: 'docker' - } - | { - buildpacks: { - repoUrl: string - path?: string - revision?: string - envVars?: { - name: string - value: string - }[] - } - type: 'buildpacks' +export type GetAllAplBackupsApiResponse = /** status 200 Successfully obtained all backups configuration */ ({ + kind: 'AplTeamBackup' + spec: { + id?: string + teamId?: string + name?: string + schedule: string + snapshotVolumes?: boolean + labelSelector?: { + name?: string + value?: string + }[] + ttl: string + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +})[] +export type GetAllAplBackupsApiArg = void +export type GetTeamAplBackupsApiResponse = /** status 200 Successfully obtained team backups configuration */ ({ + kind: 'AplTeamBackup' + spec: { + id?: string + teamId?: string + name?: string + schedule: string + snapshotVolumes?: boolean + labelSelector?: { + name?: string + value?: string + }[] + ttl: string + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +})[] +export type GetTeamAplBackupsApiArg = { + /** ID of team */ + teamId: string +} +export type CreateAplBackupApiResponse = /** status 200 Successfully stored backup configuration */ { + kind: 'AplTeamBackup' + spec: { + id?: string + teamId?: string + name?: string + schedule: string + snapshotVolumes?: boolean + labelSelector?: { + name?: string + value?: string + }[] + ttl: string + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} +export type CreateAplBackupApiArg = { + /** ID of team */ + teamId: string + /** Backup object */ + body: { + kind: 'AplTeamBackup' + spec: { + id?: string + teamId?: string + name?: string + schedule: string + snapshotVolumes?: boolean + labelSelector?: { + name?: string + value?: string + }[] + ttl: string + } + } & { + metadata: { + name: string + } + } +} +export type DeleteAplBackupApiResponse = /** status 200 Successfully deleted a backup */ undefined +export type DeleteAplBackupApiArg = { + /** ID of team */ + teamId: string + /** Name of the backup */ + backupName: string +} +export type GetAplBackupApiResponse = /** status 200 Successfully obtained backup configuration */ { + kind: 'AplTeamBackup' + spec: { + id?: string + teamId?: string + name?: string + schedule: string + snapshotVolumes?: boolean + labelSelector?: { + name?: string + value?: string + }[] + ttl: string + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} +export type GetAplBackupApiArg = { + /** ID of team */ + teamId: string + /** Name of the backup */ + backupName: string +} +export type EditAplBackupApiResponse = /** status 200 Successfully edited a team backup */ { + kind: 'AplTeamBackup' + spec: { + id?: string + teamId?: string + name?: string + schedule: string + snapshotVolumes?: boolean + labelSelector?: { + name?: string + value?: string + }[] + ttl: string + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} +export type EditAplBackupApiArg = { + /** ID of team */ + teamId: string + /** Name of the backup */ + backupName: string + /** Backup object that contains updated values */ + body: { + kind: 'AplTeamBackup' + spec: { + id?: string + teamId?: string + name?: string + schedule: string + snapshotVolumes?: boolean + labelSelector?: { + name?: string + value?: string + }[] + ttl: string + } + } & { + metadata: { + name: string + } + } +} +export type GetDashboardApiResponse = /** status 200 Successfully obtained dashboard inventory data */ object +export type GetDashboardApiArg = { + /** ID of team */ + teamId: string +} +export type GetAllBuildsApiResponse = /** status 200 Successfully obtained all builds configuration */ { + id?: string + teamId?: string + name: string + tag?: string + mode?: + | { + docker: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'docker' + } + | { + buildpacks: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'buildpacks' } externalRepo?: boolean secretName?: string @@ -1748,7 +3301,7 @@ export type GetTeamBuildsApiResponse = /** status 200 Successfully obtained team scanSource?: boolean }[] export type GetTeamBuildsApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string } export type CreateBuildApiResponse = /** status 200 Successfully stored build configuration */ { @@ -1787,7 +3340,7 @@ export type CreateBuildApiResponse = /** status 200 Successfully stored build co scanSource?: boolean } export type CreateBuildApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Build object */ body: { @@ -1828,7 +3381,7 @@ export type CreateBuildApiArg = { } export type DeleteBuildApiResponse = /** status 200 Successfully deleted a build */ undefined export type DeleteBuildApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Name of the build */ buildName: string @@ -1869,7 +3422,7 @@ export type GetBuildApiResponse = /** status 200 Successfully obtained build con scanSource?: boolean } export type GetBuildApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Name of the build */ buildName: string @@ -1910,7 +3463,7 @@ export type EditBuildApiResponse = /** status 200 Successfully edited a team bui scanSource?: boolean } export type EditBuildApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Name of the build */ buildName: string @@ -1951,28 +3504,422 @@ export type EditBuildApiArg = { scanSource?: boolean } } -export type GetAllPoliciesApiResponse = /** status 200 Successfully obtained all policy configuration */ { - 'disallow-capabilities-strict'?: { - action?: 'Audit' | 'Enforce' - severity?: 'low' | 'medium' | 'high' +export type GetAllAplBuildsApiResponse = /** status 200 Successfully obtained all builds configuration */ ({ + kind: 'AplTeamBuild' + spec: { + id?: string + teamId?: string + name?: string + tag?: string + mode?: + | { + docker: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'docker' + } + | { + buildpacks: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'buildpacks' + } + externalRepo?: boolean + secretName?: string + trigger?: boolean + scanSource?: boolean } - 'allowed-image-repositories'?: { - action?: 'Audit' | 'Enforce' - severity?: 'low' | 'medium' | 'high' - customValues?: string[] +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } } - 'disallow-capabilities'?: { - action?: 'Audit' | 'Enforce' - severity?: 'low' | 'medium' | 'high' - customValues?: string[] +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string } - 'disallow-host-namespaces'?: { - action?: 'Audit' | 'Enforce' - severity?: 'low' | 'medium' | 'high' +})[] +export type GetAllAplBuildsApiArg = void +export type GetTeamAplBuildsApiResponse = /** status 200 Successfully obtained team builds configuration */ ({ + kind: 'AplTeamBuild' + spec: { + id?: string + teamId?: string + name?: string + tag?: string + mode?: + | { + docker: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'docker' + } + | { + buildpacks: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'buildpacks' + } + externalRepo?: boolean + secretName?: string + trigger?: boolean + scanSource?: boolean } - 'disallow-host-path'?: { - action?: 'Audit' | 'Enforce' - severity?: 'low' | 'medium' | 'high' +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +})[] +export type GetTeamAplBuildsApiArg = { + /** ID of team */ + teamId: string +} +export type CreateAplBuildApiResponse = /** status 200 Successfully stored build configuration */ { + kind: 'AplTeamBuild' + spec: { + id?: string + teamId?: string + name?: string + tag?: string + mode?: + | { + docker: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'docker' + } + | { + buildpacks: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'buildpacks' + } + externalRepo?: boolean + secretName?: string + trigger?: boolean + scanSource?: boolean + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} +export type CreateAplBuildApiArg = { + /** ID of team */ + teamId: string + /** Build object */ + body: { + kind: 'AplTeamBuild' + spec: { + id?: string + teamId?: string + name?: string + tag?: string + mode?: + | { + docker: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'docker' + } + | { + buildpacks: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'buildpacks' + } + externalRepo?: boolean + secretName?: string + trigger?: boolean + scanSource?: boolean + } + } & { + metadata: { + name: string + } + } +} +export type DeleteAplBuildApiResponse = /** status 200 Successfully deleted a build */ undefined +export type DeleteAplBuildApiArg = { + /** ID of team */ + teamId: string + /** Name of the build */ + buildName: string +} +export type GetAplBuildApiResponse = /** status 200 Successfully obtained build configuration */ { + kind: 'AplTeamBuild' + spec: { + id?: string + teamId?: string + name?: string + tag?: string + mode?: + | { + docker: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'docker' + } + | { + buildpacks: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'buildpacks' + } + externalRepo?: boolean + secretName?: string + trigger?: boolean + scanSource?: boolean + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} +export type GetAplBuildApiArg = { + /** ID of team */ + teamId: string + /** Name of the build */ + buildName: string +} +export type EditAplBuildApiResponse = /** status 200 Successfully edited a team build */ { + kind: 'AplTeamBuild' + spec: { + id?: string + teamId?: string + name?: string + tag?: string + mode?: + | { + docker: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'docker' + } + | { + buildpacks: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'buildpacks' + } + externalRepo?: boolean + secretName?: string + trigger?: boolean + scanSource?: boolean + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} +export type EditAplBuildApiArg = { + /** ID of team */ + teamId: string + /** Name of the build */ + buildName: string + /** Build object that contains updated values */ + body: { + kind: 'AplTeamBuild' + spec: { + id?: string + teamId?: string + name?: string + tag?: string + mode?: + | { + docker: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'docker' + } + | { + buildpacks: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'buildpacks' + } + externalRepo?: boolean + secretName?: string + trigger?: boolean + scanSource?: boolean + } + } & { + metadata: { + name: string + } + } +} +export type GetAllPoliciesApiResponse = /** status 200 Successfully obtained all policy configuration */ { + 'disallow-capabilities-strict'?: { + action?: 'Audit' | 'Enforce' + severity?: 'low' | 'medium' | 'high' + } + 'allowed-image-repositories'?: { + action?: 'Audit' | 'Enforce' + severity?: 'low' | 'medium' | 'high' + customValues?: string[] + } + 'disallow-capabilities'?: { + action?: 'Audit' | 'Enforce' + severity?: 'low' | 'medium' | 'high' + customValues?: string[] + } + 'disallow-host-namespaces'?: { + action?: 'Audit' | 'Enforce' + severity?: 'low' | 'medium' | 'high' + } + 'disallow-host-path'?: { + action?: 'Audit' | 'Enforce' + severity?: 'low' | 'medium' | 'high' } 'disallow-host-ports'?: { action?: 'Audit' | 'Enforce' @@ -2173,7 +4120,7 @@ export type GetTeamPoliciesApiResponse = /** status 200 Successfully obtained te } } export type GetTeamPoliciesApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string } export type GetPolicyApiResponse = /** status 200 Successfully obtained policy configuration */ { @@ -2182,10 +4129,10 @@ export type GetPolicyApiResponse = /** status 200 Successfully obtained policy c customValues?: string[] } export type GetPolicyApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string - /** ID of the policy */ - policyId: string + /** Name of the policy */ + policyName: string } export type EditPolicyApiResponse = /** status 200 Successfully edited a team policy */ { action: 'Audit' | 'Enforce' @@ -2193,10 +4140,10 @@ export type EditPolicyApiResponse = /** status 200 Successfully edited a team po customValues?: string[] } export type EditPolicyApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string - /** ID of the policy */ - policyId: string + /** Name of the policy */ + policyName: string /** Policy object that contains updated values */ body: { action: 'Audit' | 'Enforce' @@ -2204,15 +4151,149 @@ export type EditPolicyApiArg = { customValues?: string[] } } -export type GetK8SVersionApiResponse = /** status 200 Successfully obtained k8s version */ string -export type GetK8SVersionApiArg = void -export type ConnectCloudttyApiResponse = /** status 200 Successfully stored cloudtty configuration */ { - id?: string - teamId: string - domain: string - emailNoSymbols: string - iFrameUrl?: string - isAdmin: boolean +export type GetAllAplPoliciesApiResponse = /** status 200 Successfully obtained all policy configuration */ ({ + kind: 'AplTeamPolicy' + spec: { + action: 'Audit' | 'Enforce' + severity: 'low' | 'medium' | 'high' + customValues?: string[] + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +})[] +export type GetAllAplPoliciesApiArg = void +export type GetTeamAplPoliciesApiResponse = /** status 200 Successfully obtained team policy configuration */ ({ + kind: 'AplTeamPolicy' + spec: { + action: 'Audit' | 'Enforce' + severity: 'low' | 'medium' | 'high' + customValues?: string[] + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +})[] +export type GetTeamAplPoliciesApiArg = { + /** ID of team */ + teamId: string +} +export type GetAplPolicyApiResponse = /** status 200 Successfully obtained policy configuration */ { + kind: 'AplTeamPolicy' + spec: { + action: 'Audit' | 'Enforce' + severity: 'low' | 'medium' | 'high' + customValues?: string[] + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} +export type GetAplPolicyApiArg = { + /** ID of team */ + teamId: string + /** Name of the policy */ + policyName: string +} +export type EditAplPolicyApiResponse = /** status 200 Successfully edited a team policy */ { + kind: 'AplTeamPolicy' + spec: { + action: 'Audit' | 'Enforce' + severity: 'low' | 'medium' | 'high' + customValues?: string[] + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} +export type EditAplPolicyApiArg = { + /** ID of team */ + teamId: string + /** Name of the policy */ + policyName: string + /** Policy object that contains updated values */ + body: { + kind: 'AplTeamPolicy' + spec: { + action: 'Audit' | 'Enforce' + severity: 'low' | 'medium' | 'high' + customValues?: string[] + } + } & { + metadata: { + name: string + } + } +} +export type GetK8SVersionApiResponse = /** status 200 Successfully obtained k8s version */ string +export type GetK8SVersionApiArg = void +export type ConnectCloudttyApiResponse = /** status 200 Successfully stored cloudtty configuration */ { + id?: string + teamId: string + domain: string + emailNoSymbols: string + iFrameUrl?: string + isAdmin: boolean userTeams?: string[] sub?: string } @@ -2332,7 +4413,7 @@ export type EditTeamUsersApiResponse = /** status 200 Successfully edited a team initialPassword?: string }[] export type EditTeamUsersApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** User object that contains updated values */ body: { @@ -2426,7 +4507,7 @@ export type GetAllProjectsApiResponse = /** status 200 Successfully obtained all id?: string teamId?: string name?: string - values: object + values: object | string } service?: { id?: string @@ -2562,7 +4643,7 @@ export type GetTeamProjectsApiResponse = /** status 200 Successfully obtained te id?: string teamId?: string name?: string - values: object + values: object | string } service?: { id?: string @@ -2615,7 +4696,7 @@ export type GetTeamProjectsApiResponse = /** status 200 Successfully obtained te } }[] export type GetTeamProjectsApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string } export type CreateProjectApiResponse = /** status 200 Successfully stored project configuration */ { @@ -2701,7 +4782,7 @@ export type CreateProjectApiResponse = /** status 200 Successfully stored projec id?: string teamId?: string name?: string - values: object + values: object | string } service?: { id?: string @@ -2754,7 +4835,7 @@ export type CreateProjectApiResponse = /** status 200 Successfully stored projec } } export type CreateProjectApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Project object */ body: { @@ -2840,7 +4921,7 @@ export type CreateProjectApiArg = { id?: string teamId?: string name?: string - values: object + values: object | string } service?: { id?: string @@ -2895,7 +4976,7 @@ export type CreateProjectApiArg = { } export type DeleteProjectApiResponse = /** status 200 Successfully deleted a project */ undefined export type DeleteProjectApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Name of the project */ projectName: string @@ -2983,7 +5064,7 @@ export type GetProjectApiResponse = /** status 200 Successfully obtained project id?: string teamId?: string name?: string - values: object + values: object | string } service?: { id?: string @@ -3036,7 +5117,7 @@ export type GetProjectApiResponse = /** status 200 Successfully obtained project } } export type GetProjectApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Name of the project */ projectName: string @@ -3124,7 +5205,7 @@ export type EditProjectApiResponse = /** status 200 Successfully edited a team p id?: string teamId?: string name?: string - values: object + values: object | string } service?: { id?: string @@ -3168,21 +5249,805 @@ export type EditProjectApiResponse = /** status 200 Successfully edited a team p value: string }[] } - } - } & { - type?: 'public' - }) - | null - ) + } + } & { + type?: 'public' + }) + | null + ) + } +} +export type EditProjectApiArg = { + /** ID of team */ + teamId: string + /** Name of the project */ + projectName: string + /** Project object that contains updated values */ + body: object +} +export type GetAllAplProjectsApiResponse = /** status 200 Successfully obtained all projects configuration */ ({ + kind: 'AplTeamProject' + spec: { + id?: string + teamId?: string + name?: string + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} & { + spec?: { + build?: { + id?: string + teamId?: string + name: string + tag?: string + mode?: + | { + docker: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'docker' + } + | { + buildpacks: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'buildpacks' + } + externalRepo?: boolean + secretName?: string + trigger?: boolean + scanSource?: boolean + } + workload?: { + id?: string + teamId?: string + name: string + icon?: string + url: string + chartProvider?: 'helm' | 'git' + path?: string + chart?: string + revision?: string + chartMetadata?: { + helmChartVersion?: string + helmChartDescription?: string + } + namespace?: string + createNamespace?: boolean + sidecarInject?: boolean + imageUpdateStrategy?: + | { + type?: 'disabled' + } + | { + digest?: { + imageRepository: string + tag: string + imageParameter?: string + tagParameter?: string + } + type?: 'digest' + } + | { + semver?: { + imageRepository: string + versionConstraint: string + imageParameter?: string + tagParameter?: string + } + type?: 'semver' + } + } & { + values: string + } + service?: { + id?: string + teamId?: string + name: string + namespace?: string + port?: number + ksvc?: { + predeployed?: boolean + } + trafficControl?: { + enabled?: boolean + weightV1?: number + weightV2?: number + } + ingress: + | ({ + type?: 'cluster' + } | null) + | ( + | ({ + ingressClassName?: string + tlsPass?: boolean + useDefaultHost?: boolean + subdomain: string + domain: string + useCname?: boolean + cname?: { + domain?: string + tlsSecretName?: string + } + paths?: string[] + forwardPath?: boolean + hasCert?: boolean + certSelect?: boolean + certName?: string + headers?: { + response?: { + set?: { + name: string + value: string + }[] + } + } + } & { + type?: 'public' + }) + | null + ) + } + } +})[] +export type GetAllAplProjectsApiArg = void +export type GetTeamAplProjectsApiResponse = /** status 200 Successfully obtained team projects configuration */ ({ + kind: 'AplTeamProject' + spec: { + id?: string + teamId?: string + name?: string + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} & { + spec?: { + build?: { + id?: string + teamId?: string + name: string + tag?: string + mode?: + | { + docker: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'docker' + } + | { + buildpacks: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'buildpacks' + } + externalRepo?: boolean + secretName?: string + trigger?: boolean + scanSource?: boolean + } + workload?: { + id?: string + teamId?: string + name: string + icon?: string + url: string + chartProvider?: 'helm' | 'git' + path?: string + chart?: string + revision?: string + chartMetadata?: { + helmChartVersion?: string + helmChartDescription?: string + } + namespace?: string + createNamespace?: boolean + sidecarInject?: boolean + imageUpdateStrategy?: + | { + type?: 'disabled' + } + | { + digest?: { + imageRepository: string + tag: string + imageParameter?: string + tagParameter?: string + } + type?: 'digest' + } + | { + semver?: { + imageRepository: string + versionConstraint: string + imageParameter?: string + tagParameter?: string + } + type?: 'semver' + } + } & { + values: string + } + service?: { + id?: string + teamId?: string + name: string + namespace?: string + port?: number + ksvc?: { + predeployed?: boolean + } + trafficControl?: { + enabled?: boolean + weightV1?: number + weightV2?: number + } + ingress: + | ({ + type?: 'cluster' + } | null) + | ( + | ({ + ingressClassName?: string + tlsPass?: boolean + useDefaultHost?: boolean + subdomain: string + domain: string + useCname?: boolean + cname?: { + domain?: string + tlsSecretName?: string + } + paths?: string[] + forwardPath?: boolean + hasCert?: boolean + certSelect?: boolean + certName?: string + headers?: { + response?: { + set?: { + name: string + value: string + }[] + } + } + } & { + type?: 'public' + }) + | null + ) + } + } +})[] +export type GetTeamAplProjectsApiArg = { + /** ID of team */ + teamId: string +} +export type CreateAplProjectApiResponse = /** status 200 Successfully stored project configuration */ { + kind: 'AplTeamProject' + spec: { + id?: string + teamId?: string + name?: string + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} & { + spec?: { + build?: { + id?: string + teamId?: string + name: string + tag?: string + mode?: + | { + docker: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'docker' + } + | { + buildpacks: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'buildpacks' + } + externalRepo?: boolean + secretName?: string + trigger?: boolean + scanSource?: boolean + } + workload?: { + id?: string + teamId?: string + name: string + icon?: string + url: string + chartProvider?: 'helm' | 'git' + path?: string + chart?: string + revision?: string + chartMetadata?: { + helmChartVersion?: string + helmChartDescription?: string + } + namespace?: string + createNamespace?: boolean + sidecarInject?: boolean + imageUpdateStrategy?: + | { + type?: 'disabled' + } + | { + digest?: { + imageRepository: string + tag: string + imageParameter?: string + tagParameter?: string + } + type?: 'digest' + } + | { + semver?: { + imageRepository: string + versionConstraint: string + imageParameter?: string + tagParameter?: string + } + type?: 'semver' + } + } & { + values: string + } + service?: { + id?: string + teamId?: string + name: string + namespace?: string + port?: number + ksvc?: { + predeployed?: boolean + } + trafficControl?: { + enabled?: boolean + weightV1?: number + weightV2?: number + } + ingress: + | ({ + type?: 'cluster' + } | null) + | ( + | ({ + ingressClassName?: string + tlsPass?: boolean + useDefaultHost?: boolean + subdomain: string + domain: string + useCname?: boolean + cname?: { + domain?: string + tlsSecretName?: string + } + paths?: string[] + forwardPath?: boolean + hasCert?: boolean + certSelect?: boolean + certName?: string + headers?: { + response?: { + set?: { + name: string + value: string + }[] + } + } + } & { + type?: 'public' + }) + | null + ) + } + } +} +export type CreateAplProjectApiArg = { + /** ID of team */ + teamId: string + /** Project object */ + body: { + kind: 'AplTeamProject' + spec: { + id?: string + teamId?: string + name?: string + } + } & { + metadata: { + name: string + } + } & { + spec?: { + build?: { + id?: string + teamId?: string + name: string + tag?: string + mode?: + | { + docker: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'docker' + } + | { + buildpacks: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'buildpacks' + } + externalRepo?: boolean + secretName?: string + trigger?: boolean + scanSource?: boolean + } + workload?: { + id?: string + teamId?: string + name: string + icon?: string + url: string + chartProvider?: 'helm' | 'git' + path?: string + chart?: string + revision?: string + chartMetadata?: { + helmChartVersion?: string + helmChartDescription?: string + } + namespace?: string + createNamespace?: boolean + sidecarInject?: boolean + imageUpdateStrategy?: + | { + type?: 'disabled' + } + | { + digest?: { + imageRepository: string + tag: string + imageParameter?: string + tagParameter?: string + } + type?: 'digest' + } + | { + semver?: { + imageRepository: string + versionConstraint: string + imageParameter?: string + tagParameter?: string + } + type?: 'semver' + } + } & { + values: string + } + service?: { + id?: string + teamId?: string + name: string + namespace?: string + port?: number + ksvc?: { + predeployed?: boolean + } + trafficControl?: { + enabled?: boolean + weightV1?: number + weightV2?: number + } + ingress: + | ({ + type?: 'cluster' + } | null) + | ( + | ({ + ingressClassName?: string + tlsPass?: boolean + useDefaultHost?: boolean + subdomain: string + domain: string + useCname?: boolean + cname?: { + domain?: string + tlsSecretName?: string + } + paths?: string[] + forwardPath?: boolean + hasCert?: boolean + certSelect?: boolean + certName?: string + headers?: { + response?: { + set?: { + name: string + value: string + }[] + } + } + } & { + type?: 'public' + }) + | null + ) + } + } + } +} +export type DeleteAplProjectApiResponse = /** status 200 Successfully deleted a project */ undefined +export type DeleteAplProjectApiArg = { + /** ID of team */ + teamId: string + /** Name of the project */ + projectName: string +} +export type GetAplProjectApiResponse = /** status 200 Successfully obtained project configuration */ { + kind: 'AplTeamProject' + spec: { + id?: string + teamId?: string + name?: string + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} & { + spec?: { + build?: { + id?: string + teamId?: string + name: string + tag?: string + mode?: + | { + docker: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'docker' + } + | { + buildpacks: { + repoUrl: string + path?: string + revision?: string + envVars?: { + name: string + value: string + }[] + } + type: 'buildpacks' + } + externalRepo?: boolean + secretName?: string + trigger?: boolean + scanSource?: boolean + } + workload?: { + id?: string + teamId?: string + name: string + icon?: string + url: string + chartProvider?: 'helm' | 'git' + path?: string + chart?: string + revision?: string + chartMetadata?: { + helmChartVersion?: string + helmChartDescription?: string + } + namespace?: string + createNamespace?: boolean + sidecarInject?: boolean + imageUpdateStrategy?: + | { + type?: 'disabled' + } + | { + digest?: { + imageRepository: string + tag: string + imageParameter?: string + tagParameter?: string + } + type?: 'digest' + } + | { + semver?: { + imageRepository: string + versionConstraint: string + imageParameter?: string + tagParameter?: string + } + type?: 'semver' + } + } & { + values: string + } + service?: { + id?: string + teamId?: string + name: string + namespace?: string + port?: number + ksvc?: { + predeployed?: boolean + } + trafficControl?: { + enabled?: boolean + weightV1?: number + weightV2?: number + } + ingress: + | ({ + type?: 'cluster' + } | null) + | ( + | ({ + ingressClassName?: string + tlsPass?: boolean + useDefaultHost?: boolean + subdomain: string + domain: string + useCname?: boolean + cname?: { + domain?: string + tlsSecretName?: string + } + paths?: string[] + forwardPath?: boolean + hasCert?: boolean + certSelect?: boolean + certName?: string + headers?: { + response?: { + set?: { + name: string + value: string + }[] + } + } + } & { + type?: 'public' + }) + | null + ) + } } } -export type EditProjectApiArg = { - /** ID of team to return */ +export type GetAplProjectApiArg = { + /** ID of team */ teamId: string /** Name of the project */ projectName: string - /** Project object that contains updated values */ - body: object } export type GetAllCodeReposApiResponse = /** status 200 Successfully obtained all code repositories */ { id?: string @@ -3204,7 +6069,7 @@ export type GetTeamCodeReposApiResponse = /** status 200 Successfully obtained c secret?: string }[] export type GetTeamCodeReposApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string } export type CreateCodeRepoApiResponse = /** status 200 Successfully stored code repo configuration */ { @@ -3240,7 +6105,7 @@ export type GetCodeRepoApiResponse = /** status 200 Successfully obtained code r secret?: string } export type GetCodeRepoApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Name of the code repository */ codeRepositoryName: string @@ -3255,7 +6120,7 @@ export type EditCodeRepoApiResponse = /** status 200 Successfully edited a team secret?: string } export type EditCodeRepoApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string /** Name of the code repository */ codeRepositoryName: string @@ -3272,12 +6137,327 @@ export type EditCodeRepoApiArg = { } export type DeleteCodeRepoApiResponse = /** status 200 Successfully deleted a team code repo */ undefined export type DeleteCodeRepoApiArg = { - /** ID of team to return */ + /** ID of team */ + teamId: string + /** Name of the code repository */ + codeRepositoryName: string +} +export type GetAllAplCodeReposApiResponse = /** status 200 Successfully obtained all code repositories */ ({ + kind: 'AplTeamCodeRepo' + spec: { + id?: string + teamId?: string + name?: string + gitService: 'gitea' | 'github' | 'gitlab' + repositoryUrl: string + private?: boolean + secret?: string + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +})[] +export type GetAllAplCodeReposApiArg = void +export type GetTeamAplCodeReposApiResponse = /** status 200 Successfully obtained code repositories */ ({ + kind: 'AplTeamCodeRepo' + spec: { + id?: string + teamId?: string + name?: string + gitService: 'gitea' | 'github' | 'gitlab' + repositoryUrl: string + private?: boolean + secret?: string + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +})[] +export type GetTeamAplCodeReposApiArg = { + /** ID of team */ + teamId: string +} +export type CreateAplCodeRepoApiResponse = /** status 200 Successfully stored code repo configuration */ { + kind: 'AplTeamCodeRepo' + spec: { + id?: string + teamId?: string + name?: string + gitService: 'gitea' | 'github' | 'gitlab' + repositoryUrl: string + private?: boolean + secret?: string + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} +export type CreateAplCodeRepoApiArg = { + /** ID of team */ + teamId: string + /** CodeRepo object */ + body: { + kind: 'AplTeamCodeRepo' + spec: { + id?: string + teamId?: string + name?: string + gitService: 'gitea' | 'github' | 'gitlab' + repositoryUrl: string + private?: boolean + secret?: string + } + } & { + metadata: { + name: string + } + } +} +export type GetAplCodeRepoApiResponse = /** status 200 Successfully obtained code repo configuration */ { + kind: 'AplTeamCodeRepo' + spec: { + id?: string + teamId?: string + name?: string + gitService: 'gitea' | 'github' | 'gitlab' + repositoryUrl: string + private?: boolean + secret?: string + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} +export type GetAplCodeRepoApiArg = { + /** ID of team */ + teamId: string + /** Name of the code repository */ + codeRepositoryName: string +} +export type EditAplCodeRepoApiResponse = /** status 200 Successfully edited a team code repo */ { + kind: 'AplTeamCodeRepo' + spec: { + id?: string + teamId?: string + name?: string + gitService: 'gitea' | 'github' | 'gitlab' + repositoryUrl: string + private?: boolean + secret?: string + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +} +export type EditAplCodeRepoApiArg = { + /** ID of team */ + teamId: string + /** Name of the code repository */ + codeRepositoryName: string + /** CodeRepo object that contains updated values */ + body: { + kind: 'AplTeamCodeRepo' + spec: { + id?: string + teamId?: string + name?: string + gitService: 'gitea' | 'github' | 'gitlab' + repositoryUrl: string + private?: boolean + secret?: string + } + } & { + metadata: { + name: string + } + } +} +export type DeleteAplCodeRepoApiResponse = /** status 200 Successfully deleted a team code repo */ undefined +export type DeleteAplCodeRepoApiArg = { + /** ID of team */ + teamId: string + /** Name of the code repository */ + codeRepositoryName: string +} +export type GetAllWorkloadsApiResponse = /** status 200 Successfully obtained all workloads configuration */ { + id?: string + teamId?: string + name: string + icon?: string + url: string + chartProvider?: 'helm' | 'git' + path?: string + chart?: string + revision?: string + chartMetadata?: { + helmChartVersion?: string + helmChartDescription?: string + } + namespace?: string + createNamespace?: boolean + sidecarInject?: boolean + imageUpdateStrategy?: + | { + type?: 'disabled' + } + | { + digest?: { + imageRepository: string + tag: string + imageParameter?: string + tagParameter?: string + } + type?: 'digest' + } + | { + semver?: { + imageRepository: string + versionConstraint: string + imageParameter?: string + tagParameter?: string + } + type?: 'semver' + } +}[] +export type GetAllWorkloadsApiArg = void +export type WorkloadCatalogApiResponse = /** status 200 Successfully updated a team project */ object +export type WorkloadCatalogApiArg = { + /** Project object that contains updated values */ + body: object +} +export type GetHelmChartContentApiResponse = /** status 200 Successfully obtained helm chart content */ { + values?: object + error?: string +} +export type GetHelmChartContentApiArg = { + /** URL of the helm chart */ + url?: string +} +export type CreateWorkloadCatalogApiResponse = /** status 200 Successfully updated a team project */ object +export type CreateWorkloadCatalogApiArg = { + /** Project object that contains updated values */ + body: object +} +export type GetTeamWorkloadsApiResponse = /** status 200 Successfully obtained team workloads configuration */ { + id?: string + teamId?: string + name: string + icon?: string + url: string + chartProvider?: 'helm' | 'git' + path?: string + chart?: string + revision?: string + chartMetadata?: { + helmChartVersion?: string + helmChartDescription?: string + } + namespace?: string + createNamespace?: boolean + sidecarInject?: boolean + imageUpdateStrategy?: + | { + type?: 'disabled' + } + | { + digest?: { + imageRepository: string + tag: string + imageParameter?: string + tagParameter?: string + } + type?: 'digest' + } + | { + semver?: { + imageRepository: string + versionConstraint: string + imageParameter?: string + tagParameter?: string + } + type?: 'semver' + } +}[] +export type GetTeamWorkloadsApiArg = { + /** ID of team */ teamId: string - /** Name of the code repository */ - codeRepositoryName: string } -export type GetAllWorkloadsApiResponse = /** status 200 Successfully obtained all workloads configuration */ { +export type CreateWorkloadApiResponse = /** status 200 Successfully stored workload configuration */ { id?: string teamId?: string name: string @@ -3316,27 +6496,60 @@ export type GetAllWorkloadsApiResponse = /** status 200 Successfully obtained al } type?: 'semver' } -}[] -export type GetAllWorkloadsApiArg = void -export type WorkloadCatalogApiResponse = /** status 200 Successfully updated a team project */ object -export type WorkloadCatalogApiArg = { - /** Project object that contains updated values */ - body: object -} -export type GetHelmChartContentApiResponse = /** status 200 Successfully obtained helm chart content */ { - values?: object - error?: string } -export type GetHelmChartContentApiArg = { - /** URL of the helm chart */ - url?: string +export type CreateWorkloadApiArg = { + /** ID of team */ + teamId: string + /** Workload object */ + body: { + id?: string + teamId?: string + name: string + icon?: string + url: string + chartProvider?: 'helm' | 'git' + path?: string + chart?: string + revision?: string + chartMetadata?: { + helmChartVersion?: string + helmChartDescription?: string + } + namespace?: string + createNamespace?: boolean + sidecarInject?: boolean + imageUpdateStrategy?: + | { + type?: 'disabled' + } + | { + digest?: { + imageRepository: string + tag: string + imageParameter?: string + tagParameter?: string + } + type?: 'digest' + } + | { + semver?: { + imageRepository: string + versionConstraint: string + imageParameter?: string + tagParameter?: string + } + type?: 'semver' + } + } } -export type CreateWorkloadCatalogApiResponse = /** status 200 Successfully updated a team project */ object -export type CreateWorkloadCatalogApiArg = { - /** Project object that contains updated values */ - body: object +export type DeleteWorkloadApiResponse = /** status 200 Successfully deleted a workload */ undefined +export type DeleteWorkloadApiArg = { + /** ID of team */ + teamId: string + /** Name of the workload */ + workloadName: string } -export type GetTeamWorkloadsApiResponse = /** status 200 Successfully obtained team workloads configuration */ { +export type GetWorkloadApiResponse = /** status 200 Successfully obtained workload configuration */ { id?: string teamId?: string name: string @@ -3375,12 +6588,14 @@ export type GetTeamWorkloadsApiResponse = /** status 200 Successfully obtained t } type?: 'semver' } -}[] -export type GetTeamWorkloadsApiArg = { - /** ID of team to return */ +} +export type GetWorkloadApiArg = { + /** ID of team */ teamId: string + /** Name of the workload */ + workloadName: string } -export type CreateWorkloadApiResponse = /** status 200 Successfully stored workload configuration */ { +export type EditWorkloadApiResponse = /** status 200 Successfully edited a team workload */ { id?: string teamId?: string name: string @@ -3420,14 +6635,219 @@ export type CreateWorkloadApiResponse = /** status 200 Successfully stored workl type?: 'semver' } } -export type CreateWorkloadApiArg = { - /** ID of team to return */ +export type EditWorkloadApiArg = { + /** ID of team */ teamId: string - /** Workload object */ + /** Name of the workload */ + workloadName: string + /** Workload object that contains updated values */ + body: { + id?: string + teamId?: string + name: string + icon?: string + url: string + chartProvider?: 'helm' | 'git' + path?: string + chart?: string + revision?: string + chartMetadata?: { + helmChartVersion?: string + helmChartDescription?: string + } + namespace?: string + createNamespace?: boolean + sidecarInject?: boolean + imageUpdateStrategy?: + | { + type?: 'disabled' + } + | { + digest?: { + imageRepository: string + tag: string + imageParameter?: string + tagParameter?: string + } + type?: 'digest' + } + | { + semver?: { + imageRepository: string + versionConstraint: string + imageParameter?: string + tagParameter?: string + } + type?: 'semver' + } + } +} +export type GetWorkloadValuesApiResponse = /** status 200 Successfully obtained all workload values */ { + id?: string + teamId?: string + name?: string + values: object | string +} +export type GetWorkloadValuesApiArg = { + /** ID of team */ + teamId: string + /** Name of the workload */ + workloadName: string +} +export type EditWorkloadValuesApiResponse = /** status 200 Successfully edited workload values */ { + id?: string + teamId?: string + name?: string + values: object | string +} +export type EditWorkloadValuesApiArg = { + /** ID of team */ + teamId: string + /** Name of the workload */ + workloadName: string + /** Workload values */ body: { id?: string teamId?: string + name?: string + values: object | string + } +} +export type GetAllAplWorkloadsApiResponse = /** status 200 Successfully obtained all workloads configuration */ ({ + kind: 'AplTeamWorkload' + spec: { + id?: string + teamId?: string + name?: string + icon?: string + url: string + chartProvider?: 'helm' | 'git' + path?: string + chart?: string + revision?: string + chartMetadata?: { + helmChartVersion?: string + helmChartDescription?: string + } + namespace?: string + createNamespace?: boolean + sidecarInject?: boolean + imageUpdateStrategy?: + | { + type?: 'disabled' + } + | { + digest?: { + imageRepository: string + tag: string + imageParameter?: string + tagParameter?: string + } + type?: 'digest' + } + | { + semver?: { + imageRepository: string + versionConstraint: string + imageParameter?: string + tagParameter?: string + } + type?: 'semver' + } + values?: string + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +})[] +export type GetAllAplWorkloadsApiArg = void +export type GetTeamAplWorkloadsApiResponse = /** status 200 Successfully obtained team workloads configuration */ ({ + kind: 'AplTeamWorkload' + spec: { + id?: string + teamId?: string + name?: string + icon?: string + url: string + chartProvider?: 'helm' | 'git' + path?: string + chart?: string + revision?: string + chartMetadata?: { + helmChartVersion?: string + helmChartDescription?: string + } + namespace?: string + createNamespace?: boolean + sidecarInject?: boolean + imageUpdateStrategy?: + | { + type?: 'disabled' + } + | { + digest?: { + imageRepository: string + tag: string + imageParameter?: string + tagParameter?: string + } + type?: 'digest' + } + | { + semver?: { + imageRepository: string + versionConstraint: string + imageParameter?: string + tagParameter?: string + } + type?: 'semver' + } + values?: string + } +} & { + metadata: { name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } +})[] +export type GetTeamAplWorkloadsApiArg = { + /** ID of team */ + teamId: string +} +export type CreateAplWorkloadApiResponse = /** status 200 Successfully stored workload configuration */ { + kind: 'AplTeamWorkload' + spec: { + id?: string + teamId?: string + name?: string icon?: string url: string chartProvider?: 'helm' | 'git' @@ -3463,111 +6883,161 @@ export type CreateWorkloadApiArg = { } type?: 'semver' } + values?: string + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string } } -export type DeleteWorkloadApiResponse = /** status 200 Successfully deleted a workload */ undefined -export type DeleteWorkloadApiArg = { - /** ID of team to return */ +export type CreateAplWorkloadApiArg = { + /** ID of team */ teamId: string - /** Name of the workload */ - workloadName: string -} -export type GetWorkloadApiResponse = /** status 200 Successfully obtained workload configuration */ { - id?: string - teamId?: string - name: string - icon?: string - url: string - chartProvider?: 'helm' | 'git' - path?: string - chart?: string - revision?: string - chartMetadata?: { - helmChartVersion?: string - helmChartDescription?: string - } - namespace?: string - createNamespace?: boolean - sidecarInject?: boolean - imageUpdateStrategy?: - | { - type?: 'disabled' - } - | { - digest?: { - imageRepository: string - tag: string - imageParameter?: string - tagParameter?: string - } - type?: 'digest' - } - | { - semver?: { - imageRepository: string - versionConstraint: string - imageParameter?: string - tagParameter?: string - } - type?: 'semver' + /** Workload object */ + body: { + kind: 'AplTeamWorkload' + spec: { + id?: string + teamId?: string + name?: string + icon?: string + url: string + chartProvider?: 'helm' | 'git' + path?: string + chart?: string + revision?: string + chartMetadata?: { + helmChartVersion?: string + helmChartDescription?: string } + namespace?: string + createNamespace?: boolean + sidecarInject?: boolean + imageUpdateStrategy?: + | { + type?: 'disabled' + } + | { + digest?: { + imageRepository: string + tag: string + imageParameter?: string + tagParameter?: string + } + type?: 'digest' + } + | { + semver?: { + imageRepository: string + versionConstraint: string + imageParameter?: string + tagParameter?: string + } + type?: 'semver' + } + values?: string + } + } & { + metadata: { + name: string + } + } } -export type GetWorkloadApiArg = { - /** ID of team to return */ +export type DeleteAplWorkloadApiResponse = /** status 200 Successfully deleted a workload */ undefined +export type DeleteAplWorkloadApiArg = { + /** ID of team */ teamId: string /** Name of the workload */ workloadName: string } -export type EditWorkloadApiResponse = /** status 200 Successfully edited a team workload */ { - id?: string - teamId?: string - name: string - icon?: string - url: string - chartProvider?: 'helm' | 'git' - path?: string - chart?: string - revision?: string - chartMetadata?: { - helmChartVersion?: string - helmChartDescription?: string - } - namespace?: string - createNamespace?: boolean - sidecarInject?: boolean - imageUpdateStrategy?: - | { - type?: 'disabled' - } - | { - digest?: { - imageRepository: string - tag: string - imageParameter?: string - tagParameter?: string +export type GetAplWorkloadApiResponse = /** status 200 Successfully obtained workload configuration */ { + kind: 'AplTeamWorkload' + spec: { + id?: string + teamId?: string + name?: string + icon?: string + url: string + chartProvider?: 'helm' | 'git' + path?: string + chart?: string + revision?: string + chartMetadata?: { + helmChartVersion?: string + helmChartDescription?: string + } + namespace?: string + createNamespace?: boolean + sidecarInject?: boolean + imageUpdateStrategy?: + | { + type?: 'disabled' } - type?: 'digest' - } - | { - semver?: { - imageRepository: string - versionConstraint: string - imageParameter?: string - tagParameter?: string + | { + digest?: { + imageRepository: string + tag: string + imageParameter?: string + tagParameter?: string + } + type?: 'digest' } - type?: 'semver' - } + | { + semver?: { + imageRepository: string + versionConstraint: string + imageParameter?: string + tagParameter?: string + } + type?: 'semver' + } + values?: string + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string + } } -export type EditWorkloadApiArg = { - /** ID of team to return */ +export type GetAplWorkloadApiArg = { + /** ID of team */ teamId: string /** Name of the workload */ workloadName: string - /** Workload object that contains updated values */ - body: { +} +export type EditAplWorkloadApiResponse = /** status 200 Successfully edited a team workload */ { + kind: 'AplTeamWorkload' + spec: { id?: string teamId?: string - name: string + name?: string icon?: string url: string chartProvider?: 'helm' | 'git' @@ -3603,47 +7073,90 @@ export type EditWorkloadApiArg = { } type?: 'semver' } + values?: string + } +} & { + metadata: { + name: string + labels: { + 'apl.io/teamId': string + } + } +} & { + status: { + conditions?: { + lastTransitionTime?: string + message?: string + reason?: string + status?: boolean + type?: string + }[] + phase?: string } } -export type GetWorkloadValuesApiResponse = /** status 200 Successfully obtained all workload values */ { - id?: string - teamId?: string - name?: string - values: object -} -export type GetWorkloadValuesApiArg = { - /** ID of team to return */ - teamId: string - /** Name of the workload */ - workloadName: string -} -export type EditWorkloadValuesApiResponse = /** status 200 Successfully edited workload values */ { - id?: string - teamId?: string - name?: string - values: object -} -export type EditWorkloadValuesApiArg = { - /** ID of team to return */ +export type EditAplWorkloadApiArg = { + /** ID of team */ teamId: string /** Name of the workload */ workloadName: string - /** Workload values */ + /** Workload object that contains updated values */ body: { - id?: string - teamId?: string - name?: string - values: object + kind: 'AplTeamWorkload' + spec: { + id?: string + teamId?: string + name?: string + icon?: string + url: string + chartProvider?: 'helm' | 'git' + path?: string + chart?: string + revision?: string + chartMetadata?: { + helmChartVersion?: string + helmChartDescription?: string + } + namespace?: string + createNamespace?: boolean + sidecarInject?: boolean + imageUpdateStrategy?: + | { + type?: 'disabled' + } + | { + digest?: { + imageRepository: string + tag: string + imageParameter?: string + tagParameter?: string + } + type?: 'digest' + } + | { + semver?: { + imageRepository: string + versionConstraint: string + imageParameter?: string + tagParameter?: string + } + type?: 'semver' + } + values?: string + } + } & { + metadata: { + name: string + } } } export type DownloadKubecfgApiResponse = /** status 200 Succesfully finished the download */ Blob export type DownloadKubecfgApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string } export type DownloadDockerConfigApiResponse = /** status 200 Succesfully finished the download */ Blob export type DownloadDockerConfigApiArg = { - /** ID of team to return */ + /** ID of team */ teamId: string } export type GetSessionApiResponse = /** status 200 Get the session for the logged in user */ { @@ -4337,18 +7850,24 @@ export type EditAppApiArg = { } export const { useGetValuesQuery, - useGetAllServicesQuery, useGetTeamsQuery, useCreateTeamMutation, useGetTeamQuery, useEditTeamMutation, useDeleteTeamMutation, + useGetAllServicesQuery, useGetTeamServicesQuery, useCreateServiceMutation, useGetTeamK8SServicesQuery, useGetServiceQuery, useEditServiceMutation, useDeleteServiceMutation, + useGetAllAplServicesQuery, + useGetTeamAplServicesQuery, + useCreateAplServiceMutation, + useGetAplServiceQuery, + useEditAplServiceMutation, + useDeleteAplServiceMutation, useGetAllSealedSecretsQuery, useDownloadSealedSecretKeysQuery, useGetSecretsFromK8SQuery, @@ -4357,18 +7876,36 @@ export const { useGetSealedSecretQuery, useEditSealedSecretMutation, useDeleteSealedSecretMutation, + useGetAllAplSecretsQuery, + useGetAplSealedSecretsQuery, + useCreateAplSealedSecretMutation, + useGetAplSealedSecretQuery, + useEditAplSealedSecretMutation, + useDeleteAplSealedSecretMutation, useGetAllNetpolsQuery, useGetTeamNetpolsQuery, useCreateNetpolMutation, useGetNetpolQuery, useEditNetpolMutation, useDeleteNetpolMutation, + useGetAllAplNetpolsQuery, + useGetTeamAplNetpolsQuery, + useCreateAplNetpolMutation, + useGetAplNetpolQuery, + useEditAplNetpolMutation, + useDeleteAplNetpolMutation, useGetAllBackupsQuery, useGetTeamBackupsQuery, useCreateBackupMutation, useDeleteBackupMutation, useGetBackupQuery, useEditBackupMutation, + useGetAllAplBackupsQuery, + useGetTeamAplBackupsQuery, + useCreateAplBackupMutation, + useDeleteAplBackupMutation, + useGetAplBackupQuery, + useEditAplBackupMutation, useGetDashboardQuery, useGetAllBuildsQuery, useGetTeamBuildsQuery, @@ -4376,10 +7913,20 @@ export const { useDeleteBuildMutation, useGetBuildQuery, useEditBuildMutation, + useGetAllAplBuildsQuery, + useGetTeamAplBuildsQuery, + useCreateAplBuildMutation, + useDeleteAplBuildMutation, + useGetAplBuildQuery, + useEditAplBuildMutation, useGetAllPoliciesQuery, useGetTeamPoliciesQuery, useGetPolicyQuery, useEditPolicyMutation, + useGetAllAplPoliciesQuery, + useGetTeamAplPoliciesQuery, + useGetAplPolicyQuery, + useEditAplPolicyMutation, useGetK8SVersionQuery, useConnectCloudttyMutation, useDeleteCloudttyMutation, @@ -4395,12 +7942,23 @@ export const { useDeleteProjectMutation, useGetProjectQuery, useEditProjectMutation, + useGetAllAplProjectsQuery, + useGetTeamAplProjectsQuery, + useCreateAplProjectMutation, + useDeleteAplProjectMutation, + useGetAplProjectQuery, useGetAllCodeReposQuery, useGetTeamCodeReposQuery, useCreateCodeRepoMutation, useGetCodeRepoQuery, useEditCodeRepoMutation, useDeleteCodeRepoMutation, + useGetAllAplCodeReposQuery, + useGetTeamAplCodeReposQuery, + useCreateAplCodeRepoMutation, + useGetAplCodeRepoQuery, + useEditAplCodeRepoMutation, + useDeleteAplCodeRepoMutation, useGetAllWorkloadsQuery, useWorkloadCatalogMutation, useGetHelmChartContentQuery, @@ -4412,6 +7970,12 @@ export const { useEditWorkloadMutation, useGetWorkloadValuesQuery, useEditWorkloadValuesMutation, + useGetAllAplWorkloadsQuery, + useGetTeamAplWorkloadsQuery, + useCreateAplWorkloadMutation, + useDeleteAplWorkloadMutation, + useGetAplWorkloadQuery, + useEditAplWorkloadMutation, useDownloadKubecfgQuery, useDownloadDockerConfigQuery, useGetSessionQuery,