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: Integer represented as decimal string
33
-
34
30
Cid:
35
31
type: string
36
32
description: Content Identifier as specified at https://github.com/multiformats/cid
@@ -55,24 +51,27 @@ components:
55
51
description: The amount of tokens paid per byte per second per slot to hosts the client is willing to pay
56
52
57
53
Duration:
58
-
type: string
59
-
description: The duration of the request in seconds as decimal string
54
+
type: integer
55
+
format: int64
56
+
description: The duration of the request in seconds
60
57
61
58
ProofProbability:
62
59
type: string
63
60
description: How often storage proofs are required as decimal string
64
61
65
62
Expiry:
66
-
type: string
63
+
type: integer
64
+
format: int64
67
65
description: A timestamp as seconds since unix epoch at which this request expires if the Request does not find requested amount of nodes to host the data.
68
-
default: 10 minutes
69
66
70
67
SPR:
71
68
type: string
72
69
description: Signed Peer Record (libp2p)
73
70
74
71
SPRRead:
75
72
type: object
73
+
required:
74
+
- spr
76
75
properties:
77
76
spr:
78
77
$ref: "#/components/schemas/SPR"
@@ -85,13 +84,21 @@ components:
85
84
86
85
Content:
87
86
type: object
87
+
required:
88
+
- cid
88
89
description: Parameters specifying the content
89
90
properties:
90
91
cid:
91
92
$ref: "#/components/schemas/Cid"
92
93
93
94
Node:
94
95
type: object
96
+
required:
97
+
- nodeId
98
+
- peerId
99
+
- record
100
+
- address
101
+
- seen
95
102
properties:
96
103
nodeId:
97
104
type: string
@@ -116,6 +123,9 @@ components:
116
123
117
124
PeersTable:
118
125
type: object
126
+
required:
127
+
- localNode
128
+
- nodes
119
129
properties:
120
130
localNode:
121
131
$ref: "#/components/schemas/Node"
@@ -126,6 +136,14 @@ components:
126
136
127
137
DebugInfo:
128
138
type: object
139
+
required:
140
+
- id
141
+
- addrs
142
+
- repo
143
+
- spr
144
+
- announceAddresses
145
+
- table
146
+
- codex
129
147
properties:
130
148
id:
131
149
$ref: "#/components/schemas/PeerId"
@@ -149,12 +167,16 @@ components:
149
167
150
168
SalesAvailability:
151
169
type: object
170
+
required:
171
+
- totalSize
172
+
- duration
173
+
- minPricePerBytePerSecond
174
+
- totalCollateral
152
175
properties:
153
-
id:
154
-
$ref: "#/components/schemas/Id"
155
176
totalSize:
156
-
type: string
157
-
description: Total size of availability's storage in bytes as decimal string
177
+
type: integer
178
+
format: int64
179
+
description: Total size of availability's storage in bytes
158
180
duration:
159
181
$ref: "#/components/schemas/Duration"
160
182
minPricePerBytePerSecond:
@@ -173,42 +195,53 @@ components:
173
195
default: 0
174
196
175
197
SalesAvailabilityREAD:
198
+
required:
199
+
- id
200
+
- totalRemainingCollateral
176
201
allOf:
177
202
- $ref: "#/components/schemas/SalesAvailability"
178
203
- type: object
179
204
properties:
205
+
id:
206
+
$ref: "#/components/schemas/Id"
207
+
readonly: true
180
208
freeSize:
181
-
type: string
209
+
type: integer
210
+
format: int64
182
211
description: Unused size of availability's storage in bytes as decimal string
183
-
184
-
SalesAvailabilityCREATE:
185
-
allOf:
186
-
- $ref: "#/components/schemas/SalesAvailability"
187
-
- required:
188
-
- totalSize
189
-
- minPricePerBytePerSecond
190
-
- totalCollateral
191
-
- duration
212
+
readOnly: true
213
+
totalRemainingCollateral:
214
+
type: string
215
+
description: Total collateral effective (in amount of tokens) that can be used for matching requests
216
+
readOnly: true
192
217
193
218
Slot:
194
219
type: object
220
+
required:
221
+
- id
222
+
- request
223
+
- slotIndex
195
224
properties:
196
225
id:
197
226
$ref: "#/components/schemas/SlotId"
198
227
request:
199
228
$ref: "#/components/schemas/StorageRequest"
200
229
slotIndex:
201
-
type: string
202
-
description: Slot Index as decimal string
230
+
type: integer
231
+
format: int64
232
+
description: Slot Index number
203
233
204
234
SlotAgent:
205
235
type: object
236
+
required:
237
+
- state
238
+
- requestId
239
+
- slotIndex
206
240
properties:
207
-
id:
208
-
$ref: "#/components/schemas/SlotId"
209
241
slotIndex:
210
-
type: string
211
-
description: Slot Index as decimal string
242
+
type: integer
243
+
format: int64
244
+
description: Slot Index number
212
245
requestId:
213
246
$ref: "#/components/schemas/Id"
214
247
request:
@@ -235,18 +268,28 @@ components:
235
268
236
269
Reservation:
237
270
type: object
271
+
required:
272
+
- id
273
+
- availabilityId
274
+
- size
275
+
- requestId
276
+
- slotIndex
277
+
- validUntil
238
278
properties:
239
279
id:
240
280
$ref: "#/components/schemas/Id"
241
281
availabilityId:
242
282
$ref: "#/components/schemas/Id"
243
283
size:
244
-
$ref: "#/components/schemas/BigInt"
284
+
type: integer
285
+
format: int64
286
+
description: Size of the slot in bytes
245
287
requestId:
246
288
$ref: "#/components/schemas/Id"
247
289
slotIndex:
248
-
type: string
249
-
description: Slot Index as decimal string
290
+
type: integer
291
+
format: int64
292
+
description: Slot Index number
250
293
validUntil:
251
294
type: integer
252
295
description: Timestamp after which the reservation will no longer be valid.
@@ -269,28 +312,39 @@ components:
269
312
nodes:
270
313
description: Minimal number of nodes the content should be stored on
271
314
type: integer
272
-
default: 1
315
+
default: 3
316
+
minimum: 3
273
317
tolerance:
274
318
description: Additional number of nodes on top of the `nodes` property that can be lost before pronouncing the content lost
275
319
type: integer
276
-
default: 0
320
+
default: 1
321
+
minimum: 1
277
322
collateralPerByte:
278
323
type: string
279
324
description: Number as decimal string that represents how much collateral per byte is asked from hosts that wants to fill a slots
280
325
expiry:
281
-
type: string
282
-
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.
326
+
type: integer
327
+
format: int64
328
+
description: Number 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.
283
329
StorageAsk:
284
330
type: object
285
331
required:
332
+
- slots
333
+
- slotSize
334
+
- duration
335
+
- proofProbability
286
336
- pricePerBytePerSecond
337
+
- collateralPerByte
338
+
- maxSlotLoss
287
339
properties:
288
340
slots:
289
341
description: Number of slots (eq. hosts) that the Request want to have the content spread over
290
342
type: integer
343
+
format: int64
291
344
slotSize:
292
-
type: string
293
-
description: Amount of storage per slot (in bytes) as decimal string
0 commit comments