Skip to content

Commit

Permalink
chore: note lack of unpin on filecoin
Browse files Browse the repository at this point in the history
  • Loading branch information
slowbackspace committed Dec 1, 2024
1 parent b683d2a commit 6ee3e2a
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 22 deletions.
9 changes: 7 additions & 2 deletions blockfrost-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5455,7 +5455,10 @@ paths:
tags:
- IPFS » Pins
summary: Pin an object
description: Pinning is necessary to avoid regular garbage collection (deletion) of IPFS objects. Non-pinned objects are regularly being removed without prior notice. Pinned objects are counted in your user storage quota.
description: |
Pinning is necessary to avoid regular garbage collection (deletion) of IPFS objects. Non-pinned objects are regularly being removed without prior notice. Pinned objects are counted in your user storage quota.
**Note:** If the object was pinned to Filecoin (using `filecoin=true`), it cannot be removed or unpinned due to Filecoin's immutable and persistent storage guarantees. Please ensure careful consideration when pinning objects to Filecoin, as the action is irreversible.
parameters:
- in: path
required: true
Expand All @@ -5469,7 +5472,7 @@ paths:
type: boolean
required: false
description: |
If set to true, the object will be pinned to Filecoin as well. If not specified, the object will only be pinned to IPFS.
If set to true, the object will be pinned to Filecoin as well. If not specified, the object will only be pinned to IPFS. Objects pinned to Filecoin cannot be unpinned due to its long-term storage guarantees.
x-codeSamples:
- lang: Shell
label: cURL
Expand Down Expand Up @@ -5731,6 +5734,8 @@ paths:
<p>
<span class="hosted">Hosted</span> Endpoint only available for hosted variant.
</p>
**Note:** If the object was pinned to Filecoin (using `filecoin=true`), it cannot be removed or unpinned due to Filecoin's immutable and persistent storage guarantees. Please ensure careful consideration when pinning objects to Filecoin, as the action is irreversible.
parameters:
- in: path
required: true
Expand Down
21 changes: 18 additions & 3 deletions docs/blockfrost-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5708,10 +5708,16 @@ paths:
tags:
- IPFS » Pins
summary: Pin an object
description: >-
description: >
Pinning is necessary to avoid regular garbage collection (deletion) of
IPFS objects. Non-pinned objects are regularly being removed without
prior notice. Pinned objects are counted in your user storage quota.
**Note:** If the object was pinned to Filecoin (using `filecoin=true`),
it cannot be removed or unpinned due to Filecoin's immutable and
persistent storage guarantees. Please ensure careful consideration when
pinning objects to Filecoin, as the action is irreversible.
parameters:
- in: path
required: true
Expand All @@ -5726,7 +5732,9 @@ paths:
required: false
description: >
If set to true, the object will be pinned to Filecoin as well. If
not specified, the object will only be pinned to IPFS.
not specified, the object will only be pinned to IPFS. Objects
pinned to Filecoin cannot be unpinned due to its long-term storage
guarantees.
x-codeSamples:
- lang: Shell
label: cURL
Expand Down Expand Up @@ -6002,12 +6010,19 @@ paths:
tags:
- IPFS » Pins
summary: Remove a IPFS pin
description: |
description: >
Remove pinned objects from local storage
<p>
<span class="hosted">Hosted</span> Endpoint only available for hosted variant.
</p>
**Note:** If the object was pinned to Filecoin (using `filecoin=true`),
it cannot be removed or unpinned due to Filecoin's immutable and
persistent storage guarantees. Please ensure careful consideration when
pinning objects to Filecoin, as the action is irreversible.
parameters:
- in: path
required: true
Expand Down
57 changes: 46 additions & 11 deletions openapi.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "0.1.69",
"version": "0.1.70",
"title": "Blockfrost.io ~ API Documentation",
"x-logo": {
"url": "https://staging.blockfrost.io/images/logo.svg",
Expand Down Expand Up @@ -7323,13 +7323,6 @@
"summary": "Add a file to IPFS",
"operationId": "ipfs_add",
"description": "You need to `/ipfs/pin/add` an object to avoid it being garbage collected. This usage\nis being counted in your user account quota.\n\n<p>\n <span class=\"hosted\">Hosted</span> Endpoint only available for hosted variant.\n</p>\n",
"x-codeSamples": [
{
"lang": "Shell",
"label": "cURL",
"source": "curl \"https://ipfs.blockfrost.io/api/v0/ipfs/add\" \\\n -X POST \\\n -H \"project_id: $PROJECT_ID\" \\\n -F \"file=@./README.md\"\n"
}
],
"requestBody": {
"content": {
"multipart/form-data": {
Expand All @@ -7345,6 +7338,13 @@
}
}
},
"x-codeSamples": [
{
"lang": "Shell",
"label": "cURL",
"source": "curl \"https://ipfs.blockfrost.io/api/v0/ipfs/add\" \\\n -X POST \\\n -H \"project_id: $PROJECT_ID\" \\\n -F \"file=@./README.md\"\n"
}
],
"responses": {
"200": {
"description": "Returns information about added IPFS object",
Expand Down Expand Up @@ -7411,6 +7411,13 @@
],
"summary": "Relay to an IPFS gateway",
"description": "Retrieve an object from the IPFS gateway (useful if you do not want to rely on a public gateway, such as `ipfs.blockfrost.dev`).\n\n<p>\n <span class=\"hosted\">Hosted</span> Endpoint only available for hosted variant.\n</p>\n",
"x-codeSamples": [
{
"lang": "Shell",
"label": "cURL",
"source": "curl \"https://ipfs.blockfrost.io/api/v0/ipfs/gateway/{IPFS_path}\" \\\n -H \"project_id: $PROJECT_ID\" \\\n"
}
],
"parameters": [
{
"in": "path",
Expand Down Expand Up @@ -7466,7 +7473,7 @@
"IPFS » Pins"
],
"summary": "Pin an object",
"description": "Pinning is necessary to avoid regular garbage collection (deletion) of IPFS objects. Non-pinned objects are regularly being removed without prior notice. Pinned objects are counted in your user storage quota.",
"description": "Pinning is necessary to avoid regular garbage collection (deletion) of IPFS objects. Non-pinned objects are regularly being removed without prior notice. Pinned objects are counted in your user storage quota.\n\n**Note:** If the object was pinned to Filecoin (using `filecoin=true`), it cannot be removed or unpinned due to Filecoin's immutable and persistent storage guarantees. Please ensure careful consideration when pinning objects to Filecoin, as the action is irreversible.\n",
"parameters": [
{
"in": "path",
Expand All @@ -7484,7 +7491,14 @@
"type": "boolean"
},
"required": false,
"description": "If set to true, the object will be pinned to Filecoin as well. If not specified, the object will only be pinned to IPFS.\n"
"description": "If set to true, the object will be pinned to Filecoin as well. If not specified, the object will only be pinned to IPFS. Objects pinned to Filecoin cannot be unpinned due to its long-term storage guarantees.\n"
}
],
"x-codeSamples": [
{
"lang": "Shell",
"label": "cURL",
"source": "curl \"https://ipfs.blockfrost.io/api/v0/ipfs/pin/add/{IPFS_path}\" \\\n -H \"project_id: $PROJECT_ID\" \\\n"
}
],
"responses": {
Expand Down Expand Up @@ -7602,6 +7616,13 @@
"description": "The ordering of items from the point of view of the blockchain,\nnot the page listing itself. By default, we return oldest first, newest last.\n"
}
],
"x-codeSamples": [
{
"lang": "Shell",
"label": "cURL",
"source": "curl \"https://ipfs.blockfrost.io/api/v0/ipfs/pin/list/\" \\\n -H \"project_id: $PROJECT_ID\" \\\n"
}
],
"responses": {
"200": {
"description": "Returns pinned objects",
Expand Down Expand Up @@ -7706,6 +7727,13 @@
}
}
],
"x-codeSamples": [
{
"lang": "Shell",
"label": "cURL",
"source": "curl \"https://ipfs.blockfrost.io/api/v0/ipfs/pin/list/{IPFS_PATH}\" \\\n -H \"project_id: $PROJECT_ID\" \\\n"
}
],
"responses": {
"200": {
"description": "Returns the pins pinned",
Expand Down Expand Up @@ -7795,7 +7823,7 @@
"IPFS » Pins"
],
"summary": "Remove a IPFS pin",
"description": "Remove pinned objects from local storage\n\n<p>\n <span class=\"hosted\">Hosted</span> Endpoint only available for hosted variant.\n</p>\n",
"description": "Remove pinned objects from local storage\n\n<p>\n <span class=\"hosted\">Hosted</span> Endpoint only available for hosted variant.\n</p>\n\n**Note:** If the object was pinned to Filecoin (using `filecoin=true`), it cannot be removed or unpinned due to Filecoin's immutable and persistent storage guarantees. Please ensure careful consideration when pinning objects to Filecoin, as the action is irreversible.\n",
"parameters": [
{
"in": "path",
Expand All @@ -7807,6 +7835,13 @@
}
}
],
"x-codeSamples": [
{
"lang": "Shell",
"label": "cURL",
"source": "curl \"https://ipfs.blockfrost.io/api/v0/ipfs/pin/remove/{IPFS_PATH}\" \\\n -X POST \\\n -H \"project_id: $PROJECT_ID\" \\\n"
}
],
"responses": {
"200": {
"description": "Returns the pins removed",
Expand Down
21 changes: 18 additions & 3 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5708,10 +5708,16 @@ paths:
tags:
- IPFS » Pins
summary: Pin an object
description: >-
description: >
Pinning is necessary to avoid regular garbage collection (deletion) of
IPFS objects. Non-pinned objects are regularly being removed without
prior notice. Pinned objects are counted in your user storage quota.
**Note:** If the object was pinned to Filecoin (using `filecoin=true`),
it cannot be removed or unpinned due to Filecoin's immutable and
persistent storage guarantees. Please ensure careful consideration when
pinning objects to Filecoin, as the action is irreversible.
parameters:
- in: path
required: true
Expand All @@ -5726,7 +5732,9 @@ paths:
required: false
description: >
If set to true, the object will be pinned to Filecoin as well. If
not specified, the object will only be pinned to IPFS.
not specified, the object will only be pinned to IPFS. Objects
pinned to Filecoin cannot be unpinned due to its long-term storage
guarantees.
x-codeSamples:
- lang: Shell
label: cURL
Expand Down Expand Up @@ -6002,12 +6010,19 @@ paths:
tags:
- IPFS » Pins
summary: Remove a IPFS pin
description: |
description: >
Remove pinned objects from local storage
<p>
<span class="hosted">Hosted</span> Endpoint only available for hosted variant.
</p>
**Note:** If the object was pinned to Filecoin (using `filecoin=true`),
it cannot be removed or unpinned due to Filecoin's immutable and
persistent storage guarantees. Please ensure careful consideration when
pinning objects to Filecoin, as the action is irreversible.
parameters:
- in: path
required: true
Expand Down
7 changes: 6 additions & 1 deletion src/generated-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5835,11 +5835,14 @@ export interface paths {
/**
* Pin an object
* @description Pinning is necessary to avoid regular garbage collection (deletion) of IPFS objects. Non-pinned objects are regularly being removed without prior notice. Pinned objects are counted in your user storage quota.
*
* **Note:** If the object was pinned to Filecoin (using `filecoin=true`), it cannot be removed or unpinned due to Filecoin's immutable and persistent storage guarantees. Please ensure careful consideration when pinning objects to Filecoin, as the action is irreversible.
*
*/
post: {
parameters: {
query?: {
/** @description If set to true, the object will be pinned to Filecoin as well. If not specified, the object will only be pinned to IPFS.
/** @description If set to true, the object will be pinned to Filecoin as well. If not specified, the object will only be pinned to IPFS. Objects pinned to Filecoin cannot be unpinned due to its long-term storage guarantees.
* */
filecoin?: boolean;
};
Expand Down Expand Up @@ -6084,6 +6087,8 @@ export interface paths {
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
* </p>
*
* **Note:** If the object was pinned to Filecoin (using `filecoin=true`), it cannot be removed or unpinned due to Filecoin's immutable and persistent storage guarantees. Please ensure careful consideration when pinning objects to Filecoin, as the action is irreversible.
*
*/
post: {
parameters: {
Expand Down
7 changes: 5 additions & 2 deletions src/paths/ipfs/pin/add/{IPFS_path}/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ post:
tags:
- IPFS » Pins
summary: Pin an object
description: Pinning is necessary to avoid regular garbage collection (deletion) of IPFS objects. Non-pinned objects are regularly being removed without prior notice. Pinned objects are counted in your user storage quota.
description: |
Pinning is necessary to avoid regular garbage collection (deletion) of IPFS objects. Non-pinned objects are regularly being removed without prior notice. Pinned objects are counted in your user storage quota.
**Note:** If the object was pinned to Filecoin (using `filecoin=true`), it cannot be removed or unpinned due to Filecoin's immutable and persistent storage guarantees. Please ensure careful consideration when pinning objects to Filecoin, as the action is irreversible.
parameters:
- in: path
required: true
Expand All @@ -18,7 +21,7 @@ post:
type: boolean
required: false
description: >
If set to true, the object will be pinned to Filecoin as well. If not specified, the object will only be pinned to IPFS.
If set to true, the object will be pinned to Filecoin as well. If not specified, the object will only be pinned to IPFS. Objects pinned to Filecoin cannot be unpinned due to its long-term storage guarantees.
x-codeSamples:
- lang: "Shell"
label: "cURL"
Expand Down
2 changes: 2 additions & 0 deletions src/paths/ipfs/pin/remove/{IPFS_path}/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ post:
<p>
<span class="hosted">Hosted</span> Endpoint only available for hosted variant.
</p>
**Note:** If the object was pinned to Filecoin (using `filecoin=true`), it cannot be removed or unpinned due to Filecoin's immutable and persistent storage guarantees. Please ensure careful consideration when pinning objects to Filecoin, as the action is irreversible.
parameters:
- in: path
required: true
Expand Down

0 comments on commit 6ee3e2a

Please sign in to comment.