You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Additional number of nodes on top of the `nodes` property that can be lost before pronouncing the content lost
260
264
type: integer
261
265
default: 0
262
-
collateral:
266
+
collateralPerByte:
263
267
type: string
264
-
description: Number as decimal string that represents how much collateral is asked from hosts that wants to fill a slots
268
+
description: Number as decimal string that represents how much collateral per byte is asked from hosts that wants to fill a slots
265
269
expiry:
266
270
type: string
267
271
description: Number as decimal string that represents expiry threshold in seconds from when the Request is submitted. When the threshold is reached and the Request does not find requested amount of nodes to host the data, the Request is voided. The number of seconds can not be higher then the Request's duration itself.
268
272
StorageAsk:
269
273
type: object
270
274
required:
271
-
- reward
275
+
- pricePerBytePerSecond
272
276
properties:
273
277
slots:
274
278
description: Number of slots (eq. hosts) that the Request want to have the content spread over
description: Max slots that can be lost without data considered to be lost
@@ -367,12 +371,6 @@ components:
367
371
nullable: true
368
372
description: "The original mimetype of the uploaded content (optional)"
369
373
example: image/png
370
-
uploadedAt:
371
-
type: integer
372
-
format: int64
373
-
nullable: true
374
-
description: "The UTC upload timestamp in seconds"
375
-
example: 1729244192
376
374
377
375
Space:
378
376
type: object
@@ -414,7 +412,7 @@ paths:
414
412
description: |
415
413
If `addrs` param is supplied, it will be used to dial the peer, otherwise the `peerId` is used
416
414
to invoke peer discovery, if it succeeds the returned addresses will be used to dial.
417
-
tags: [Node]
415
+
tags: [Node]
418
416
operationId: connectPeer
419
417
parameters:
420
418
- in: path
@@ -444,7 +442,7 @@ paths:
444
442
"/data":
445
443
get:
446
444
summary: "Lists manifest CIDs stored locally in node."
447
-
tags: [Data]
445
+
tags: [Data]
448
446
operationId: listData
449
447
responses:
450
448
"200":
@@ -464,7 +462,7 @@ paths:
464
462
description: Well it was bad-bad
465
463
post:
466
464
summary: "Upload a file in a streaming manner. Once finished, the file is stored in the node and can be retrieved by any node in the network using the returned CID."
467
-
tags: [Data]
465
+
tags: [Data]
468
466
operationId: upload
469
467
parameters:
470
468
- name: content-type
@@ -480,7 +478,7 @@ paths:
480
478
description: The content disposition used to send the filename.
481
479
schema:
482
480
type: string
483
-
example: "attachment; filename=\"codex.png\""
481
+
example: 'attachment; filename="codex.png"'
484
482
requestBody:
485
483
content:
486
484
application/octet-stream:
@@ -500,7 +498,7 @@ paths:
500
498
"/data/{cid}":
501
499
get:
502
500
summary: "Download a file from the local node in a streaming manner. If the file is not available locally, a 404 is returned."
503
-
tags: [Data]
501
+
tags: [Data]
504
502
operationId: downloadLocal
505
503
parameters:
506
504
- in: path
@@ -528,7 +526,7 @@ paths:
528
526
"/data/{cid}/network":
529
527
post:
530
528
summary: "Download a file from the network to the local node if it's not available locally. Note: Download is performed async. Call can return before download is completed."
531
-
tags: [Data]
529
+
tags: [Data]
532
530
operationId: downloadNetwork
533
531
parameters:
534
532
- in: path
@@ -554,7 +552,7 @@ paths:
554
552
"/data/{cid}/network/stream":
555
553
get:
556
554
summary: "Download a file from the network in a streaming manner. If the file is not available locally, it will be retrieved from other nodes in the network if able."
557
-
tags: [Data]
555
+
tags: [Data]
558
556
operationId: downloadNetworkStream
559
557
parameters:
560
558
- in: path
@@ -581,7 +579,7 @@ paths:
581
579
"/data/{cid}/network/manifest":
582
580
get:
583
581
summary: "Download only the dataset manifest from the network to the local node if it's not available locally."
584
-
tags: [Data]
582
+
tags: [Data]
585
583
operationId: downloadNetworkManifest
586
584
parameters:
587
585
- in: path
@@ -607,7 +605,7 @@ paths:
607
605
"/space":
608
606
get:
609
607
summary: "Gets a summary of the storage space allocation of the node."
610
-
tags: [Data]
608
+
tags: [Data]
611
609
operationId: space
612
610
responses:
613
611
"200":
@@ -623,7 +621,7 @@ paths:
623
621
"/sales/slots":
624
622
get:
625
623
summary: "Returns active slots"
626
-
tags: [Marketplace]
624
+
tags: [Marketplace]
627
625
operationId: getActiveSlots
628
626
responses:
629
627
"200":
@@ -641,7 +639,7 @@ paths:
641
639
"/sales/slots/{slotId}":
642
640
get:
643
641
summary: "Returns active slot with id {slotId} for the host"
644
-
tags: [Marketplace]
642
+
tags: [Marketplace]
645
643
operationId: getActiveSlotById
646
644
parameters:
647
645
- in: path
@@ -670,7 +668,7 @@ paths:
670
668
"/sales/availability":
671
669
get:
672
670
summary: "Returns storage that is for sale"
673
-
tags: [Marketplace]
671
+
tags: [Marketplace]
674
672
operationId: getAvailabilities
675
673
responses:
676
674
"200":
@@ -689,7 +687,7 @@ paths:
689
687
post:
690
688
summary: "Offers storage for sale"
691
689
operationId: offerStorage
692
-
tags: [Marketplace]
690
+
tags: [Marketplace]
693
691
requestBody:
694
692
content:
695
693
application/json:
@@ -717,7 +715,7 @@ paths:
717
715
The new parameters will be only considered for new requests.
718
716
Existing Requests linked to this Availability will continue as is.
719
717
operationId: updateOfferedStorage
720
-
tags: [Marketplace]
718
+
tags: [Marketplace]
721
719
parameters:
722
720
- in: path
723
721
name: id
@@ -749,7 +747,7 @@ paths:
749
747
summary: "Get availability's reservations"
750
748
description: Return's list of Reservations for ongoing Storage Requests that the node hosts.
total_size: Optional[StrictStr] =Field(default=None, description="Total size of availability's storage in bytes as decimal string", alias="totalSize")
32
32
duration: Optional[StrictStr] =Field(default=None, description="The duration of the request in seconds as decimal string")
33
-
min_price: Optional[StrictStr] =Field(default=None, description="Minimal price paid (in amount of tokens) for the whole hosted request's slot for the request's duration as decimal string", alias="minPrice")
34
-
max_collateral: Optional[StrictStr] =Field(default=None, description="Maximum collateral user is willing to pay per filled Slot (in amount of tokens) as decimal string", alias="maxCollateral")
min_price_per_byte_per_second: Optional[StrictStr] =Field(default=None, description="Minimal price per byte per second paid (in amount of tokens) for the hosted request's slot for the request's duration as decimal string", alias="minPricePerBytePerSecond")
34
+
total_collateral: Optional[StrictStr] =Field(default=None, description="Total collateral (in amount of tokens) that can be used for matching requests", alias="totalCollateral")
0 commit comments