From 4bf0efb42677305a9e4b8178c2cc1aa0fc831b4a Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Fri, 10 Nov 2023 14:23:44 +0000 Subject: [PATCH] feat: update generated APIs --- packages/clients/src/api/ipfs/v1alpha1/api.gen.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/clients/src/api/ipfs/v1alpha1/api.gen.ts b/packages/clients/src/api/ipfs/v1alpha1/api.gen.ts index f81f0912e..f0e87363d 100644 --- a/packages/clients/src/api/ipfs/v1alpha1/api.gen.ts +++ b/packages/clients/src/api/ipfs/v1alpha1/api.gen.ts @@ -238,6 +238,20 @@ export class API extends ParentAPI { unmarshalPin, ) + /** + * Replace pin by CID. Deletes the given resource ID and pins the new CID in + * its place. Will fetch and store the content pointed by the provided CID. + * The content must be available on the public IPFS network. The content (IPFS + * blocks) is hosted by the pinning service until the pin is deleted. While + * the content is available any other IPFS peer can fetch and host your + * content. For this reason, we recommend that you pin either public or + * encrypted content. Several different pin requests can target the same CID. + * A pin is defined by its ID (UUID), its status (queued, pinning, pinned or + * failed) and target CID. + * + * @param request - The request {@link ReplacePinRequest} + * @returns A Promise of ReplacePinResponse + */ replacePin = (request: Readonly) => this.client.fetch( {