diff --git a/packages/cli/src/generated/artifacts-admin/ArtifactsAdminService.ts b/packages/cli/src/generated/artifacts-admin/ArtifactsAdminService.ts deleted file mode 100644 index 0d4190caf..000000000 --- a/packages/cli/src/generated/artifacts-admin/ArtifactsAdminService.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2023 Palantir Technologies, Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export { clearDeletedUserRepositories } from "./ArtifactsAdminService/clearDeletedUserRepositories.js"; -export { getContainerRegistryDomain } from "./ArtifactsAdminService/getContainerRegistryDomain.js"; diff --git a/packages/cli/src/generated/artifacts-admin/ArtifactsAdminService/clearDeletedUserRepositories.ts b/packages/cli/src/generated/artifacts-admin/ArtifactsAdminService/clearDeletedUserRepositories.ts deleted file mode 100644 index cd8dab71d..000000000 --- a/packages/cli/src/generated/artifacts-admin/ArtifactsAdminService/clearDeletedUserRepositories.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2023 Palantir Technologies, Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { type ConjureContext, conjureFetch } from "conjure-lite"; -import type { ClearDeletedUserRepositoriesRequest } from "../ClearDeletedUserRepositoriesRequest.js"; - -/** - * Kicks off a background task that will iterate over all Stemma repositories and delete all contents from - * user repositories that no longer exist in Stemma. - */ -export async function clearDeletedUserRepositories( - ctx: ConjureContext, - request: ClearDeletedUserRepositoriesRequest, -): Promise { - return conjureFetch(ctx, `/admin/clearDeletedRepositories`, "POST", request); -} diff --git a/packages/cli/src/generated/artifacts-admin/ArtifactsAdminService/getContainerRegistryDomain.ts b/packages/cli/src/generated/artifacts-admin/ArtifactsAdminService/getContainerRegistryDomain.ts deleted file mode 100644 index 554acacee..000000000 --- a/packages/cli/src/generated/artifacts-admin/ArtifactsAdminService/getContainerRegistryDomain.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2023 Palantir Technologies, Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { type ConjureContext, conjureFetch } from "conjure-lite"; -import type { ContainerRegistryDomainResponse } from "../ContainerRegistryDomainResponse.js"; - -/** - * Get the container registry domain, e.g, papaya-container-registry.palantircloud.com - */ -export async function getContainerRegistryDomain( - ctx: ConjureContext, -): Promise { - return conjureFetch(ctx, `/admin/container-registry`, "GET"); -} diff --git a/packages/cli/src/generated/artifacts-admin/ClearDeletedUserRepositoriesRequest.ts b/packages/cli/src/generated/artifacts-admin/ClearDeletedUserRepositoriesRequest.ts deleted file mode 100644 index 397813dee..000000000 --- a/packages/cli/src/generated/artifacts-admin/ClearDeletedUserRepositoriesRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright 2023 Palantir Technologies, Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export interface ClearDeletedUserRepositoriesRequest { - dryRun: boolean; -} diff --git a/packages/cli/src/generated/artifacts-admin/ContainerRegistryDomainResponse.ts b/packages/cli/src/generated/artifacts-admin/ContainerRegistryDomainResponse.ts deleted file mode 100644 index 86c427bce..000000000 --- a/packages/cli/src/generated/artifacts-admin/ContainerRegistryDomainResponse.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright 2023 Palantir Technologies, Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export interface ContainerRegistryDomainResponse { - domain: string; -} diff --git a/packages/cli/src/generated/artifacts-admin/index.ts b/packages/cli/src/generated/artifacts-admin/index.ts deleted file mode 100644 index cc4ddc939..000000000 --- a/packages/cli/src/generated/artifacts-admin/index.ts +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright 2023 Palantir Technologies, Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export * as ArtifactsAdminService from "./ArtifactsAdminService.js"; - -export type { ClearDeletedUserRepositoriesRequest } from "./ClearDeletedUserRepositoriesRequest.js"; -export type { ContainerRegistryDomainResponse } from "./ContainerRegistryDomainResponse.js"; diff --git a/scripts/generateConjure.sh b/scripts/generateConjure.sh index 827504350..c5d5bb502 100755 --- a/scripts/generateConjure.sh +++ b/scripts/generateConjure.sh @@ -30,7 +30,6 @@ function generateConjure() { formatTypescript "$OUT_DIR" "$PACKAGE_PATH" } -generateConjure "com.palantir.artifacts" "artifacts-admin-api" "${SCRIPT_DIR}/../packages/cli" generateConjure "com.palantir.artifacts" "artifacts-sites-api" "${SCRIPT_DIR}/../packages/cli" generateConjure "com.palantir.object-set-service" "object-set-service-api" "${SCRIPT_DIR}/../packages/client"