@@ -23,6 +23,8 @@ components:
23
23
Id :
24
24
type : string
25
25
description : 32bits identifier encoded in hex-decimal string.
26
+ minLength : 66
27
+ maxLength : 66
26
28
example : 0x...
27
29
28
30
BigInt :
@@ -136,7 +138,7 @@ components:
136
138
$ref : " #/components/schemas/Duration"
137
139
minPrice :
138
140
type : string
139
- description : Minimum price to be paid (in amount of tokens) as decimal string
141
+ description : Minimal price paid (in amount of tokens) for the whole hosted request's slot for the request's duration as decimal string
140
142
maxCollateral :
141
143
type : string
142
144
description : Maximum collateral user is willing to pay per filled Slot (in amount of tokens) as decimal string
@@ -168,7 +170,39 @@ components:
168
170
$ref : " #/components/schemas/StorageRequest"
169
171
slotIndex :
170
172
type : string
171
- description : Slot Index as hexadecimal string
173
+ description : Slot Index as decimal string
174
+
175
+ SlotAgent :
176
+ type : object
177
+ properties :
178
+ id :
179
+ $ref : " #/components/schemas/SlotId"
180
+ slotIndex :
181
+ type : string
182
+ description : Slot Index as decimal string
183
+ requestId :
184
+ $ref : " #/components/schemas/Id"
185
+ request :
186
+ $ref : " #/components/schemas/StorageRequest"
187
+ reservation :
188
+ $ref : " #/components/schemas/Reservation"
189
+ state :
190
+ type : string
191
+ description : Description of the slot's
192
+ enum :
193
+ - SaleCancelled
194
+ - SaleDownloading
195
+ - SaleErrored
196
+ - SaleFailed
197
+ - SaleFilled
198
+ - SaleFilling
199
+ - SaleFinished
200
+ - SaleIgnored
201
+ - SaleInitialProving
202
+ - SalePayout
203
+ - SalePreparing
204
+ - SaleProving
205
+ - SaleUnknown
172
206
173
207
Reservation :
174
208
type : object
@@ -183,7 +217,7 @@ components:
183
217
$ref : " #/components/schemas/Id"
184
218
slotIndex :
185
219
type : string
186
- description : Slot Index as hexadecimal string
220
+ description : Slot Index as decimal string
187
221
188
222
StorageRequestCreation :
189
223
type : object
@@ -259,6 +293,15 @@ components:
259
293
state :
260
294
type : string
261
295
description : Description of the Request's state
296
+ enum :
297
+ - cancelled
298
+ - error
299
+ - failed
300
+ - finished
301
+ - pending
302
+ - started
303
+ - submitted
304
+ - unknown
262
305
error :
263
306
type : string
264
307
description : If Request failed, then here is presented the error message
@@ -491,7 +534,7 @@ paths:
491
534
$ref : " #/components/schemas/Slot"
492
535
493
536
" 503 " :
494
- description : Sales are unavailable
537
+ description : Persistence is not enabled
495
538
496
539
" /sales/slots/{slotId} " :
497
540
get :
@@ -511,7 +554,7 @@ paths:
511
554
content :
512
555
application/json :
513
556
schema :
514
- $ref : " #/components/schemas/Slot "
557
+ $ref : " #/components/schemas/SlotAgent "
515
558
516
559
" 400 " :
517
560
description : Invalid or missing SlotId
@@ -520,13 +563,13 @@ paths:
520
563
description : Host is not in an active sale for the slot
521
564
522
565
" 503 " :
523
- description : Sales are unavailable
566
+ description : Persistence is not enabled
524
567
525
568
" /sales/availability " :
526
569
get :
527
570
summary : " Returns storage that is for sale"
528
571
tags : [ Marketplace ]
529
- operationId : getOfferedStorage
572
+ operationId : getAvailabilities
530
573
responses :
531
574
" 200 " :
532
575
description : Retrieved storage availabilities of the node
@@ -535,11 +578,11 @@ paths:
535
578
schema :
536
579
type : array
537
580
items :
538
- $ref : " #/components/schemas/SalesAvailability "
581
+ $ref : " #/components/schemas/SalesAvailabilityREAD "
539
582
" 500 " :
540
583
description : Error getting unused availabilities
541
584
" 503 " :
542
- description : Sales are unavailable
585
+ description : Persistence is not enabled
543
586
544
587
post :
545
588
summary : " Offers storage for sale"
@@ -564,7 +607,7 @@ paths:
564
607
" 500 " :
565
608
description : Error reserving availability
566
609
" 503 " :
567
- description : Sales are unavailable
610
+ description : Persistence is not enabled
568
611
" /sales/availability/{id} " :
569
612
patch :
570
613
summary : " Updates availability"
@@ -597,10 +640,10 @@ paths:
597
640
" 500 " :
598
641
description : Error reserving availability
599
642
" 503 " :
600
- description : Sales are unavailable
643
+ description : Persistence is not enabled
601
644
602
645
" /sales/availability/{id}/reservations " :
603
- patch :
646
+ get :
604
647
summary : " Get availability's reservations"
605
648
description : Return's list of Reservations for ongoing Storage Requests that the node hosts.
606
649
operationId : getReservations
@@ -628,7 +671,7 @@ paths:
628
671
" 500 " :
629
672
description : Error getting reservations
630
673
" 503 " :
631
- description : Sales are unavailable
674
+ description : Persistence is not enabled
632
675
633
676
" /storage/request/{cid} " :
634
677
post :
@@ -659,7 +702,7 @@ paths:
659
702
" 404 " :
660
703
description : Request ID not found
661
704
" 503 " :
662
- description : Purchasing is unavailable
705
+ description : Persistence is not enabled
663
706
664
707
" /storage/purchases " :
665
708
get :
@@ -676,7 +719,7 @@ paths:
676
719
items :
677
720
type : string
678
721
" 503 " :
679
- description : Purchasing is unavailable
722
+ description : Persistence is not enabled
680
723
681
724
" /storage/purchases/{id} " :
682
725
get :
@@ -702,7 +745,7 @@ paths:
702
745
" 404 " :
703
746
description : Purchase not found
704
747
" 503 " :
705
- description : Purchasing is unavailable
748
+ description : Persistence is not enabled
706
749
707
750
" /node/spr " :
708
751
get :
0 commit comments