code: func apiInstanceToInfo(inst *api.Instance) InstanceInfo {
  	return InstanceInfo{
  		Pin: common.Pin{
  			PackageName: inst.Package,
  			InstanceID:  common.ObjectRefToInstanceID(inst.Instance),
  		},
  		RegisteredBy: inst.RegisteredBy,
  		RegisteredTs: UnixTime(google.TimeFromProto(inst.RegisteredTs)),
  	}
  }
docs: ////////////////////////////////////////////////////////////////////////////////
  // Converters from proto API to JSON output structs.