diff --git a/models/Cooldown.json b/models/Cooldown.json index 148d98c..f10e582 100644 --- a/models/Cooldown.json +++ b/models/Cooldown.json @@ -2,6 +2,11 @@ "type": "object", "description": "A cooldown is a period of time in which a ship cannot perform certain actions.", "properties": { + "shipSymbol": { + "type": "string", + "description": "The symbol of the ship that is on cooldown", + "minLength": 1 + }, "totalSeconds": { "type": "integer", "description": "The total duration of the cooldown in seconds", @@ -20,6 +25,7 @@ } }, "required": [ + "shipSymbol", "totalSeconds", "remainingSeconds", "expiration" diff --git a/models/ShipModule.json b/models/ShipModule.json index 4e3c145..916b751 100644 --- a/models/ShipModule.json +++ b/models/ShipModule.json @@ -19,6 +19,14 @@ "MODULE_SHIELD_GENERATOR_II" ] }, + "capacity": { + "type": "integer", + "minimum": 0 + }, + "range": { + "type": "integer", + "minimum": 0 + }, "name": { "type": "string" }, diff --git a/models/ShipMount.json b/models/ShipMount.json index 889cf8d..48be0c5 100644 --- a/models/ShipMount.json +++ b/models/ShipMount.json @@ -25,6 +25,10 @@ "description": { "type": "string" }, + "strength": { + "type": "integer", + "minimum": 0 + }, "requirements": { "$ref": "./ShipRequirements.json" } diff --git a/models/SystemWaypoint.json b/models/SystemWaypoint.json index 3de74e8..39c74e1 100644 --- a/models/SystemWaypoint.json +++ b/models/SystemWaypoint.json @@ -3,9 +3,13 @@ "properties": { "symbol": { "type": "string" + }, + "type": { + "$ref": "./WaypointType.json" } }, "required": [ - "symbol" + "symbol", + "type" ] } \ No newline at end of file diff --git a/reference/SpaceTraders.json b/reference/SpaceTraders.json index a95ecd3..bb4e65f 100644 --- a/reference/SpaceTraders.json +++ b/reference/SpaceTraders.json @@ -60,7 +60,7 @@ "paths": { "/register": { "post": { - "description": "Creates a new agent and ties it to a temporary Account. Use `COMMERCE_REPUBLIC` as your starting faction if you don't know any other factions to choose from.\n\nThe agent symbol is a 4-8 character string that will represent your agent. This symbol will prefix the symbol of every ship you own. Agent symbols will be cast to all uppercase characters.\n\nA new agent will be granted an authorization token, a contract with their starting faction, a command ship with a jump drive, and one hundred thousand credits.\n\n> #### Keep your token safe and secure\n>\n> Save your token during the alpha phase. There is no way to regenerate this token without starting a new agent. In the future you will be able to generate and manage your tokens from the SpaceTraders website.\n\nYou can accept your contract using the `/my/contracts/{contractId}/accept` endpoint. You will want to navigate your command ship to a nearby asteroid field waypoint, and execute the `/my/ships/{shipSymbol}/accept` endpoint to mine various types of ores and minerals.\n\nReturn to the contract destination and execute the `/my/ships/{shipSymbol}/deliver` endpoint to deposit goods into the contract.\n\nWhen your contract is fulfilled, you can call `/my/contracts/{contractId}/fulfill` to retrieve payment.", + "description": "Creates a new agent and ties it to a temporary Account.\n\nThe agent symbol is a 4-8 character string that will represent your agent. This symbol will prefix the symbol of every ship you own. Agent symbols will be cast to all uppercase characters.\n\nA new agent will be granted an authorization token, a contract with their starting faction, a command ship with a jump drive, and one hundred thousand credits.\n\n> #### Keep your token safe and secure\n>\n> Save your token during the alpha phase. There is no way to regenerate this token without starting a new agent. In the future you will be able to generate and manage your tokens from the SpaceTraders website.\n\nYou can accept your contract using the `/my/contracts/{contractId}/accept` endpoint. You will want to navigate your command ship to a nearby asteroid field and execute the `/my/ships/{shipSymbol}/extract` endpoint to mine various types of ores and minerals.\n\nReturn to the contract destination and execute the `/my/ships/{shipSymbol}/deliver` endpoint to deposit goods into the contract.\n\nWhen your contract is fulfilled, you can call `/my/contracts/{contractId}/fulfill` to retrieve payment.", "operationId": "register", "requestBody": { "content": {