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
Copy file name to clipboardExpand all lines: codex_api_client/models/storage_ask.py
+1-1
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ class StorageAsk(BaseModel):
27
27
StorageAsk
28
28
"""# noqa: E501
29
29
slots: Optional[StrictInt] =Field(default=None, description="Number of slots (eq. hosts) that the Request want to have the content spread over")
30
-
slot_size: Optional[StrictStr] =Field(default=None, description="Amount of storage per slot (in bytes) as decimal string", alias="slotSize")
30
+
slot_size: Optional[StrictInt] =Field(default=None, description="Amount of storage per slot (in bytes) as decimal string", alias="slotSize")
31
31
duration: Optional[StrictInt] =Field(default=None, description="The duration of the request in seconds")
32
32
proof_probability: Optional[StrictStr] =Field(default=None, description="How often storage proofs are required as decimal string", alias="proofProbability")
33
33
price_per_byte_per_second: StrictStr=Field(description="The amount of tokens paid per byte per second per slot to hosts the client is willing to pay", alias="pricePerBytePerSecond")
@@ -29,8 +30,8 @@ class StorageRequestCreation(BaseModel):
29
30
duration: StrictInt=Field(description="The duration of the request in seconds")
30
31
price_per_byte_per_second: StrictStr=Field(description="The amount of tokens paid per byte per second per slot to hosts the client is willing to pay", alias="pricePerBytePerSecond")
31
32
proof_probability: StrictStr=Field(description="How often storage proofs are required as decimal string", alias="proofProbability")
32
-
nodes: Optional[StrictInt] =Field(default=3, description="Minimal number of nodes the content should be stored on")
33
-
tolerance: Optional[StrictInt] =Field(default=1, description="Additional number of nodes on top of the `nodes` property that can be lost before pronouncing the content lost")
33
+
nodes: Optional[Annotated[int, Field(strict=True, ge=3)]] =Field(default=3, description="Minimal number of nodes the content should be stored on")
34
+
tolerance: Optional[Annotated[int, Field(strict=True, ge=1)]] =Field(default=1, description="Additional number of nodes on top of the `nodes` property that can be lost before pronouncing the content lost")
34
35
collateral_per_byte: StrictStr=Field(description="Number as decimal string that represents how much collateral per byte is asked from hosts that wants to fill a slots", alias="collateralPerByte")
35
36
expiry: StrictInt=Field(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.")
0 commit comments